CustomProperties { public synchronized CustomProperties clear(String key) { if (isValidKey(key)) { addProperty(key, null); } return this; }  synchronized CustomProperties set(String key, String value); synchronized CustomProperties set(String key, Date value); synchronized CustomProperties set(String key, Number value); synchronized CustomProperties set(String key, boolean value); synchronized CustomProperties clear(String key);  }
@Test public void clear() { String key = "test"; CustomProperties properties = new CustomProperties(); assertEquals(0, properties.getProperties().size()); properties.clear(key); assertEquals(1, properties.getProperties().size()); verifyStatic(never()); AppCenterLog.error(eq(AppCenter.LOG_TAG), anyString()); }