assertEquals(literal.getDatatype(), PlainLiteral());
}
@Test
public void testBoolean() {
OWLLiteral literal = Literal(true);
assertTrue(literal.isBoolean());
assertTrue(literal.parseBoolean());
OWLLiteral trueLiteral = Literal("true", OWL2Datatype.XSD_BOOLEAN);
assertTrue(trueLiteral.isBoolean());
assertTrue(trueLiteral.parseBoolean());
OWLLiteral falseLiteral = Literal("false", OWL2Datatype.XSD_BOOLEAN);
assertTrue(falseLiteral.isBoolean());
assertFalse(falseLiteral.parseBoolean());
OWLLiteral oneLiteral = Literal("1", OWL2Datatype.XSD_BOOLEAN);
assertTrue(oneLiteral.isBoolean());
assertTrue(oneLiteral.parseBoolean());
OWLLiteral zeroLiteral = Literal("0", OWL2Datatype.XSD_BOOLEAN);
assertTrue(zeroLiteral.isBoolean());
assertFalse(zeroLiteral.parseBoolean());
}