}
@Test public void languageLiteralEquality() {
String stringValue = "some text";
Language lang = new Language("en-ca");
PlainLiteral literal1 = new PlainLiteralImpl(stringValue, lang);
PlainLiteral literal2 = new PlainLiteralImpl(stringValue, lang);
Assert.assertEquals(literal1, literal2);
Assert.assertEquals(literal1.hashCode(), literal2.hashCode());
Language lang2 = new Language("de");
PlainLiteral literal3 = new PlainLiteralImpl(stringValue, lang2);
Assert.assertFalse(literal1.equals(literal3));
PlainLiteral literal4 = new PlainLiteralImpl(stringValue, null);
Assert.assertFalse(literal3.equals(literal4));
Assert.assertFalse(literal4.equals(literal3));
}