TextApplication { public int getPort() { return port; }  URI getUriObject(); int getPort(); void setPort(final int portNumber); String getUri(); void setUri(final String applicationUri);  }
@Test public void testGetPort() { final TextApplication application1 = new TextApplication(); application1.setPort(4242); Assert.assertEquals(4242, application1.getPort()); final TextApplication application2 = new TextApplication(); Assert.assertEquals(0, application2.getPort()); }