Endpoint { public String getURL() { return url; } Endpoint(String url); String getURL(); EndpointType getType(); String getComparisonString(); URL generateGetCapabilitiesURL(); boolean equals(Endpoint other); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetURL() { String expResult = "http: Endpoint instance = new Endpoint(expResult); String result = instance.getURL(); assertThat(expResult, is(equalTo(result))); }