Endpoint { public String getComparisonString() { return comparisonString; } 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 testGetComparisonString() { String url = "http: Endpoint instance = new Endpoint(url); String expResult = "http: String result = instance.getComparisonString(); assertThat(expResult, is(equalTo(result))); }