NamedEntity extends BaseEntity { public String getName() { return name; } NamedEntity();  NamedEntity(String name);  NamedEntity(NamedEntity clone); String getName(); void setName(String name); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void constructorName() { NamedEntity another = new NamedEntity(NAME); assertEquals("name not same.", NAME, another.getName()); }
@Test public void copyConstructor() { NamedEntity another = new NamedEntity(entity); assertEquals("name not same.", entity.getName(), another.getName()); }