### Question:
DebugCounter implements IFloodlightModule, IDebugCounterService { @Override public void resetAllCounters() { RetCtrInfo rci = new RetCtrInfo(); rci.levels = "".split("/"); for (String moduleName : moduleCounters.keySet()) { ArrayList<Integer> resetIds = getHierarchyBelow(moduleName, rci); for (int index : resetIds) { allCounters[index].cvalue.set(0); } } }  @Override IDebugCounter registerCounter(String moduleName, String counterHierarchy,
                           String counterDescription, CounterType counterType,
                           String... metaData); @Override void flushCounters(); @Override void resetCounterHierarchy(String moduleName, String counterHierarchy); @Override void resetAllCounters(); @Override void resetAllModuleCounters(String moduleName); @Override void enableCtrOnDemand(String moduleName, String counterHierarchy); @Override void disableCtrOnDemand(String moduleName, String counterHierarchy); @Override List<DebugCounterInfo> getCounterHierarchy(String moduleName,
                                                     String counterHierarchy); @Override List<DebugCounterInfo> getAllCounterValues(); @Override List<DebugCounterInfo> getModuleCounterValues(String moduleName); @Override boolean containsModuleCounterHierarchy(String moduleName,
                                                 String counterHierarchy); @Override boolean containsModuleName(String moduleName); @Override List<String> getModuleList(); @Override List<String> getModuleCounterList(String moduleName); @Override Collection<Class<? extends IFloodlightService>> getModuleServices(); @Override Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls(); @Override Collection<Class<? extends IFloodlightService>> getModuleDependencies(); @Override void init(FloodlightModuleContext context); @Override void startUp(FloodlightModuleContext context);  }### Answer:
@Test public void testHierarchicalCounterReset4() { testCounterHierarchy(); dc.resetAllCounters(); checkCounters(0, 0, 0, 0, 0, 0, 0); testCounterHierarchy(); }