TextApplication { public URI getUriObject() { return uri; }  URI getUriObject(); int getPort(); void setPort(final int portNumber); String getUri(); void setUri(final String applicationUri);  }
@Test public void testGetUriObject() throws Exception { final TextApplication application1 = new TextApplication(); application1.setUri("http:localhost:8080"); final URI uri1 = new URI("http:localhost:8080"); Assert.assertEquals(uri1, application1.getUriObject()); final TextApplication application2 = new TextApplication(); Assert.assertNull(application2.getUriObject()); }