@Test
public void testMobiLiteral() throws Exception {

    OWLLiteral owlLiteral = new OWLLiteralImplString("testString");
    IRI iri = factory.createIRI("http://www.w3.org/2001/XMLSchema#string");
    Literal literal = mock(Literal.class);
    Datatype datatype = mock(Datatype.class);
    
    expect(datatype.getIRI()).andReturn(iri).anyTimes();
    expect(literal.getDatatype()).andReturn(iri).anyTimes();
    expect(literal.getLabel()).andReturn("testString").anyTimes();
    
    replay(literal, datatype);
    
    mockStaticPartial(SimpleOntologyValues.class, "mobiDatatype");
    expect(SimpleOntologyValues.mobiDatatype(isA(OWLDatatype.class))).andReturn(datatype).anyTimes();
    replay(SimpleOntologyValues.class);
    assertEquals("testString", SimpleOntologyValues.mobiLiteral(owlLiteral).getLabel());
    assertEquals(iri, SimpleOntologyValues.mobiLiteral(owlLiteral).getDatatype());
}