GeneralComposeable implements Composeable { @Override public boolean equals(Object o) { if (identifier == null) throw new IllegalStateException("Composeable object needs an identifier"); if (o instanceof Composeable) { Composeable c = (Composeable) o; return c.getIdentifier().equals(identifier); } return false; } protected  GeneralComposeable(); protected  GeneralComposeable(String identifier); protected  GeneralComposeable(long recheckTime, long validTime); protected  GeneralComposeable(String identifier, long recheckTime,
      long validTime); @Override void setIdentifier(String identifier); @Override String getIdentifier(); @Override void setName(String name); @Override String getName(); @Override void setComposeable(boolean composeable); @Override boolean isComposeable(); @Override void setClientRevalidationTime(long time); @Override long getClientRevalidationTime(); @Override void setCacheExpirationTime(long time); @Override long getCacheExpirationTime(); @Override void addHTMLHeader(HTMLHeadElement header); @Override void removeHTMLHeader(HTMLHeadElement header); @Override HTMLHeadElement[] getHTMLHeaders(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); @Override void setEnvironment(Environment environment); @Override Environment getEnvironment();  }
@Test public void testEqualsObject() { try { assertTrue(composeable.equals(new PageTemplateImpl(identifier, new URL("http: assertTrue(composeable.equals(new PageTemplateImpl(identifier, new URL("http: assertFalse(composeable.equals(new PageTemplateImpl("xyz", new URL("http: } catch (MalformedURLException e) { fail(); } }