### Question:
ResourceConsumptionManager implements IOFogModule { public static ResourceConsumptionManager getInstance() { if (instance == null) { synchronized (ResourceConsumptionManager.class) { if (instance == null) instance = new ResourceConsumptionManager(); } } return instance; } private  ResourceConsumptionManager(); @Override int getModuleIndex(); @Override String getModuleName(); static ResourceConsumptionManager getInstance(); void instanceConfigUpdated(); void start();  }### Answer:
@Test public void testGetInstanceIsSameAsMock() { assertSame(resourceConsumptionManager, ResourceConsumptionManager.getInstance()); }