### Question:
FireflyExtension { String getHmcDefinitionHash() { return getHashFromFile(new File(rootPath, "hmc/resources/hmc.xml"), NO_HMC_XML_MD5); } FireflyExtension(String name, File rootPath, FireflyExtensionRepository fireflyExtensionRepository, MigrationRepository migrationRepository, boolean relaxedMode); boolean isUpdateRequired(); boolean isHmcResetRequired(); void onHmcReset(PK migration); void onUpdate(PK migration); @Override String toString();  }### Answer:
@Test public void shouldGetHmcConfigurationHash() throws Exception { String resultHash = fireflyExtension.getHmcDefinitionHash(); assertEquals(generateMD5(HMC_XML_CONTENT), resultHash); }
@Test public void shouldGetDefaultHmcDefinitionHashIfNoItemsXmlWasFound() throws Exception { fireflyExtension = new FireflyExtension(EXTENSION_WITHOUT_ITEMS_XML, getTempDirectory(), fireflyExtensionRepository, migrationRepository, false); String resultHash = fireflyExtension.getHmcDefinitionHash(); assertEquals(NO_HMC_XML_MD5, resultHash); }