Settings { public String getServerName() { return serverName; } Settings();  Settings(final String serverName); String getServerName(); void setServerName(final String serverName);  }
@Test public void testGetServerName() throws Exception { Settings settings = new Settings("serverName"); assertEquals(settings.getServerName(), "serverName"); }