### Question:
DefaultAtlasModuleInfoRegistry implements AtlasModuleInfoRegistry { @Override public void register(AtlasModuleInfo module) { moduleInfos.add(module); registerModuleJmx(module); } 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 testRegister() { List<String> formats = new ArrayList<>(); formats.add("java"); List<String> packageNames = new ArrayList<>(); packageNames.add("io.atlasmap.core"); DefaultAtlasModuleInfo atlasModuleInfo = new DefaultAtlasModuleInfo("name", "atlas:java", AtlasModule.class, null, formats, packageNames); atlasModuleInfoRegistry.register(atlasModuleInfo); assertEquals(1, atlasModuleInfoRegistry.size()); }