### Question:
CachedCurrentInstallationController implements ParseCurrentInstallationController { @Override public boolean isCurrent(ParseInstallation installation) { synchronized (mutex) { return currentInstallation == installation; } } CachedCurrentInstallationController(
      ParseObjectStore<ParseInstallation> store, InstallationId installationId); @Override Task<Void> setAsync(final ParseInstallation installation); @Override Task<ParseInstallation> getAsync(); @Override Task<Boolean> existsAsync(); @Override void clearFromMemory(); @Override void clearFromDisk(); @Override boolean isCurrent(ParseInstallation installation);  }### Answer:
@Test public void testIsCurrent() throws Exception { CachedCurrentInstallationController controller = new CachedCurrentInstallationController(null, null); ParseInstallation installation = mock(ParseInstallation.class); controller.currentInstallation = installation; assertTrue(controller.isCurrent(installation)); assertFalse(controller.isCurrent(new ParseInstallation())); }