### Question:
ParseCurrentConfigController { void clearCurrentConfigForTesting() { synchronized (currentConfigMutex) { currentConfig = null; } } ParseCurrentConfigController(File currentConfigFile); Task<Void> setCurrentConfigAsync(final ParseConfig config); Task<ParseConfig> getCurrentConfigAsync();  }### Answer:
@Test public void testClearCurrentConfigForTestingSuccess() throws Exception { File configFile = new File(temporaryFolder.getRoot(), "config"); ParseCurrentConfigController currentConfigController = new ParseCurrentConfigController(configFile); currentConfigController.currentConfig = new ParseConfig(); assertNotNull(currentConfigController.currentConfig); currentConfigController.clearCurrentConfigForTesting(); assertNull(currentConfigController.currentConfig); }
@Test public void testClearCurrentConfigForTestingSuccess() { File configFile = new File(temporaryFolder.getRoot(), "config"); ParseCurrentConfigController currentConfigController = new ParseCurrentConfigController(configFile); currentConfigController.currentConfig = new ParseConfig(); assertNotNull(currentConfigController.currentConfig); currentConfigController.clearCurrentConfigForTesting(); assertNull(currentConfigController.currentConfig); }