@Test
public void testEquals() {

    final ServiceCoordinate coordA = ServiceCoordinate.parse("a.b.c");
    final ServiceCoordinate coordB = ServiceCoordinate.parse("a.b.c");
    final ServiceCoordinate coordC = ServiceCoordinate.parse("a.b.d");
    final ServiceCoordinate coordD = ServiceCoordinate.parse("a.a.c");
    final ServiceCoordinate coordE = ServiceCoordinate.parse("a.a.a");
    final ServiceCoordinate coordF = ServiceCoordinate.parse("c.b.c");
    assertThat(coordA, is(equalTo(coordB)));
    assertThat(coordB, is(equalTo(coordA)));
    assertThat(coordA, is(not(equalTo(coordC))));
    assertThat(coordA, is(not(equalTo(coordD))));
    assertThat(coordA, is(not(equalTo(coordE))));
    assertThat(coordA, is(not(equalTo(coordF))));
    assertThat(coordA.equals(null), is(false));
    assertThat(coordA.equals(new Object()), is(false));
}