### Question:
DefaultAtlasModuleInfoRegistry implements AtlasModuleInfoRegistry { @Override public AtlasModuleInfo lookupByUri(String uri) { if (uri == null) { return null; } for (AtlasModuleInfo module : moduleInfos) { if (uri.startsWith(module.getUri())) { return module; } } return null; } 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 testLookupByUri() { assertNull(atlasModuleInfoRegistry.lookupByUri(null)); 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); assertNotNull(atlasModuleInfoRegistry.lookupByUri("atlas:java")); assertNull(atlasModuleInfoRegistry.lookupByUri("java")); }