### Question:
MongoDbPageLayout extends PageLayoutImpl { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof MongoDbPageLayout)) return false; if (!super.equals(o)) return false; MongoDbPageLayout that = (MongoDbPageLayout) o; if (id != null ? !id.equals(that.id) : that.id != null) return false; return true; }  String getId(); void setId(String id); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void equals_Same(){ assertTrue(pageLayout.equals(pageLayout)); }
@Test public void equals_Diff_Instance(){ Object o = new Object(); assertFalse(pageLayout.equals(o)); }
@Test public void equals_Super(){ PageLayout p = new MongoDbPageLayout(); p.setCode("code"); assertFalse(pageLayout.equals(p)); }