### Question:
FireflySystem { public boolean isHmcResetRequired() { boolean resetRequired = false; Iterator<FireflyExtension> extensionIterator = extensions.iterator(); while (!resetRequired && extensionIterator.hasNext()) { resetRequired = extensionIterator.next().isHmcResetRequired(); } return resetRequired; } FireflySystem(HybrisAdapter hybrisAdapter, List<FireflyExtension> extensions); void update(FireflyMigrationModel migration); void setBaseline(FireflyMigrationModel migration); boolean isHmcResetRequired(); boolean isUpdateRequired(); Map<String, File> getExtensionPaths();  }### Answer:
@Test public void shouldRequireHmcReset() throws Exception { given(extensionAlice.isHmcResetRequired()).willReturn(true); boolean resetRequired = fireflySystem.isHmcResetRequired(); assertTrue(resetRequired); }
@Test public void shouldNotRequireHmcReset() throws Exception { given(extensionAlice.isHmcResetRequired()).willReturn(false); given(extensionBob.isHmcResetRequired()).willReturn(false); boolean resetRequired = fireflySystem.isHmcResetRequired(); assertFalse(resetRequired); }