@Test public void
hashCodeTest()
{

    final Constraint constraint = new Constraint("name","av1");
    final Constraint sameConstraint = new Constraint("name","av1");
    final Constraint anotherConstraint = new Constraint("name2","av");
    assertThat(constraint.hashCode(),is(constraint.hashCode()));
    assertThat(constraint.hashCode(),is(sameConstraint.hashCode()));
    assertThat(constraint.hashCode(),is(not(anotherConstraint.hashCode())));
    assertThat(sameConstraint.hashCode(),is(not(anotherConstraint.hashCode())));
}