MetadataSchema implements ReloadableEntity<Integer> { public void setName(String name) { this.name = name; } protected  MetadataSchema(); @Override boolean equals(Object obj); @Override int hashCode(); String getNamespace(); void setNamespace(String namespace); String getName(); void setName(String name); Integer getID(); static final String DC_SCHEMA; }
@Test public void testSetName() { String oldname = ms.getName(); String name = "new name"; ms.setName(name); assertThat("testSetName 0",ms.getName(),notNullValue()); assertThat("testSetName 1",ms.getName(),not(equalTo(""))); assertThat("testSetName 2",ms.getName(),equalTo(name)); ms.setName(oldname); }