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