### Question:
ResourceConsumptionManager implements IOFogModule { public void instanceConfigUpdated() { logInfo("Start Configuration instance updated"); diskLimit = Configuration.getDiskLimit() * 1_000_000_000; cpuLimit = Configuration.getCpuLimit(); memoryLimit = Configuration.getMemoryLimit() * 1_000_000; logInfo("Finished Config updated"); } private  ResourceConsumptionManager(); @Override int getModuleIndex(); @Override String getModuleName(); static ResourceConsumptionManager getInstance(); void instanceConfigUpdated(); void start();  }### Answer:
@Test public void testInstanceConfigUpdated() throws Exception{ Field privateDiskLimitField = ResourceConsumptionManager.class. getDeclaredField("diskLimit"); Field privateCpuLimitField = ResourceConsumptionManager.class. getDeclaredField("cpuLimit"); Field privateMemoryLimitField = ResourceConsumptionManager.class. getDeclaredField("memoryLimit"); privateDiskLimitField.setAccessible(true); privateCpuLimitField.setAccessible(true); privateMemoryLimitField.setAccessible(true); resourceConsumptionManager.instanceConfigUpdated(); PowerMockito.verifyStatic(LoggingService.class, Mockito.atLeastOnce()); LoggingService.logInfo(MODULE_NAME, "Start Configuration instance updated"); LoggingService.logInfo(MODULE_NAME, "Finished Config updated"); assertEquals(1.0E9f, privateDiskLimitField.get(resourceConsumptionManager)); assertEquals(1.0f, privateCpuLimitField.get(resourceConsumptionManager)); assertEquals(1000000.0f, privateMemoryLimitField.get(resourceConsumptionManager)); privateDiskLimitField.setAccessible(false); privateCpuLimitField.setAccessible(false); privateMemoryLimitField.setAccessible(false); }