### Question:
FireflySystemFactory { List<FireflyExtension> createExtensions() { List<String> extensionNames = Registry.getMasterTenant().getTenantSpecificExtensionNames(); List<FireflyExtension> result = new ArrayList<>(extensionNames.size()); for (String extensionName : extensionNames) { result.add(createFireflyExtension(extensionName)); } return result; }  FireflySystem createFireflySystem(); void destroyFireflySystem(FireflySystem fireflySystem);  }### Answer:
@Test public void shouldFindFireflyExtension() throws Exception { FireflyExtension fireflyExtension = findByName(fireflySystemFactory.createExtensions(), "firefly"); assertNotNull(fireflyExtension); assertEquals("firefly", fireflyExtension.getRootPath().getName()); }