### Question:
DefaultAtlasModuleInfoRegistry implements AtlasModuleInfoRegistry { @Override public synchronized void unregisterAll() { for (AtlasModuleInfo info : moduleInfos) { unregisterModuleJmx(info); } moduleInfos.clear(); } DefaultAtlasModuleInfoRegistry(DefaultAtlasContextFactory factory); @Override AtlasModuleInfo lookupByUri(String uri); @Override Set<AtlasModuleInfo> getAll(); @Override void register(AtlasModuleInfo module); @Override int size(); @Override synchronized void unregisterAll();  }### Answer:
@Test public void testUnregisterAll() { atlasModuleInfoRegistry.unregisterAll(); assertEquals(0, atlasModuleInfoRegistry.size()); }