assertEquals(t1, t2);
assertEquals(t1.hashCode(), t2.hashCode());
}
public void testTranslationsWithDifferentValuesAreNotEqual() {
Translation t1 = new Translation("foo", "bar");
Translation t2 = new Translation("foo", "bar2");
Translation t3 = new Translation("foo2", "bar");
assertFalse(t1.equals(t2));
assertFalse(t2.equals(t1));
assertFalse(t1.hashCode() == t2.hashCode());
assertFalse(t1.equals(t3));
assertFalse(t3.equals(t1));
assertFalse(t1.hashCode() == t3.hashCode());
}