@Test public void
equalsTest()
{

    final Constraint constraint = new Constraint("name","av1");
    final Constraint sameConstraint = new Constraint("name","av1");
    final Constraint anotherConstraint = new Constraint("name2","av");
    final Constraint withOtherNameButSameValues = new Constraint("name2","av1");
    assertThat(constraint.equals(constraint), is(true));
    assertThat(constraint.equals(null), is(false));
    assertThat(constraint.equals(new Object()), is(false));
    assertThat(constraint.equals(sameConstraint), is(true));
    assertThat(constraint.equals(anotherConstraint), is(false));
    assertThat(constraint.equals(withOtherNameButSameValues), is(false));
}