### Question:
CachedCurrentUserController implements ParseCurrentUserController { @Override public void clearFromMemory() { synchronized (mutex) { currentUser = null; currentUserMatchesDisk = false; } } CachedCurrentUserController(ParseObjectStore<ParseUser> store); @Override Task<Void> setAsync(final ParseUser user); @Override Task<Void> setIfNeededAsync(ParseUser user); @Override Task<ParseUser> getAsync(); @Override Task<Boolean> existsAsync(); @Override boolean isCurrent(ParseUser user); @Override void clearFromMemory(); @Override void clearFromDisk(); @Override Task<String> getCurrentSessionTokenAsync(); @Override Task<Void> logOutAsync(); @Override Task<ParseUser> getAsync(final boolean shouldAutoCreateUser);  }### Answer:
@Test public void testClearFromMemory() throws Exception { CachedCurrentUserController controller = new CachedCurrentUserController(null); controller.currentUser = mock(ParseUser.class); controller.clearFromMemory(); assertNull(controller.currentUser); assertFalse(controller.currentUserMatchesDisk); }
@Test public void testClearFromMemory() { CachedCurrentUserController controller = new CachedCurrentUserController(null); controller.currentUser = mock(ParseUser.class); controller.clearFromMemory(); assertNull(controller.currentUser); assertFalse(controller.currentUserMatchesDisk); }