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