Endpoint { public boolean equals(Endpoint other) { if (comparisonString != null) { return comparisonString.equals(other.getComparisonString()); } else { return false; } } 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 testEquals_Endpoint() { Endpoint other = new Endpoint("http: Endpoint instance = new Endpoint("http: boolean result = instance.equals(other); assertThat(result, is(true)); }
@Test public void testEquals() { System.out.println("equals"); Endpoint other = new Endpoint("https: boolean expResult = true; boolean result = testpoint.equals(other); assertThat(expResult, is(equalTo(result))); }
@Test public void testEqualsFalse() { System.out.println("equalsFalse"); Endpoint other = new Endpoint("https: boolean expResult = false; boolean result = testpoint.equals(other); assertThat(expResult, is(equalTo(result))); }