@Test public void shouldRegisterFireflyForUpdateEvent() throws Exception { FireflySystem fireflySystem = fireflySystemFactory.createFireflySystem(); assertTrue(systemUpdateEventListener.isListenerRegistered(fireflySystem.getExtensions().get(0))); }
public FireflySystem createFireflySystem() { return new FireflySystem(hybrisAdapter, createExtensions()); }
FireflySystemFactory { public FireflySystem createFireflySystem() { return new FireflySystem(hybrisAdapter, createExtensions()); } }
FireflySystemFactory { public FireflySystem createFireflySystem() { return new FireflySystem(hybrisAdapter, createExtensions()); }  }
FireflySystemFactory { public FireflySystem createFireflySystem() { return new FireflySystem(hybrisAdapter, createExtensions()); }  FireflySystem createFireflySystem(); void destroyFireflySystem(FireflySystem fireflySystem); }
FireflySystemFactory { public FireflySystem createFireflySystem() { return new FireflySystem(hybrisAdapter, createExtensions()); }  FireflySystem createFireflySystem(); void destroyFireflySystem(FireflySystem fireflySystem);  }