### Question:
ExternalRenderTheme implements XmlRenderTheme { @Override public boolean equals(Object obj) { if (this == obj) { return true; } else if (!(obj instanceof ExternalRenderTheme)) { return false; } ExternalRenderTheme other = (ExternalRenderTheme) obj; if (this.lastModifiedTime != other.lastModifiedTime) { return false; } if (this.renderThemeFile == null) { if (other.renderThemeFile != null) { return false; } } else if (!this.renderThemeFile.equals(other.renderThemeFile)) { return false; } return true; } ExternalRenderTheme(File renderThemeFile); @Override boolean equals(Object obj); @Override String getRelativePathPrefix(); @Override InputStream getRenderThemeAsStream(); @Override int hashCode();  }### Answer:
@Test public void equalsTest() throws FileNotFoundException { ExternalRenderTheme externalRenderTheme1 = new ExternalRenderTheme(new File(EMPTY_RENDER_THEME_PATH)); ExternalRenderTheme externalRenderTheme2 = new ExternalRenderTheme(new File(EMPTY_RENDER_THEME_PATH)); ExternalRenderTheme externalRenderTheme3 = new ExternalRenderTheme(new File(RENDER_THEME_PATH)); equalsTest(externalRenderTheme1, externalRenderTheme2); Assert.assertFalse(externalRenderTheme1.equals(externalRenderTheme3)); Assert.assertFalse(externalRenderTheme3.equals(externalRenderTheme1)); Assert.assertFalse(externalRenderTheme1.equals(new Object())); }
@Test public void equalsTest() throws FileNotFoundException { File renderThemeFile = new File(RESOURCE_FOLDER, "empty-render-theme.xml"); ExternalRenderTheme externalRenderTheme1 = new ExternalRenderTheme(renderThemeFile); ExternalRenderTheme externalRenderTheme2 = new ExternalRenderTheme(renderThemeFile); ExternalRenderTheme externalRenderTheme3 = new ExternalRenderTheme(new File(RESOURCE_FOLDER, "test-render-theme.xml")); equalsTest(externalRenderTheme1, externalRenderTheme2); Assert.assertFalse(externalRenderTheme1.equals(externalRenderTheme3)); Assert.assertFalse(externalRenderTheme3.equals(externalRenderTheme1)); Assert.assertFalse(externalRenderTheme1.equals(new Object())); }