Site extends DSpaceObject { @Override public String getName() { return getSiteService().getName(this); } protected  Site(); @Override int getType(); @Override String getName(); String getURL();  }
@Test public void testGetName() { assertThat("testGetName 0",s.getName(), equalTo(ConfigurationManager.getProperty("dspace.name"))); assertThat("testGetName 1",siteService.getName(s), equalTo(ConfigurationManager.getProperty("dspace.name"))); }