@Test
public void testMobiDatatype() throws Exception {

    OWLDatatype owlDatatype = mock(OWLDatatype.class);
    org.semanticweb.owlapi.model.IRI owlDatatypeIRI = mock(org.semanticweb.owlapi.model.IRI.class);
    IRI datatypeIRI = mock(IRI.class);
    expect(owlDatatype.getIRI()).andReturn(owlDatatypeIRI).anyTimes();
    expect(owlDatatype.isBuiltIn()).andReturn(true).anyTimes();
    expect(datatypeIRI.stringValue()).andReturn("http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral").anyTimes();
    mockStaticPartial(SimpleOntologyValues.class, "mobiIRI", "owlapiIRI");
    expect(SimpleOntologyValues.mobiIRI(owlDatatypeIRI)).andReturn(datatypeIRI).anyTimes();
    expect(SimpleOntologyValues.owlapiIRI(datatypeIRI)).andReturn(owlDatatypeIRI).anyTimes();
    mockStaticPartial(org.semanticweb.owlapi.model.IRI.class, "create");
    expect(org.semanticweb.owlapi.model.IRI.create(isA(String.class), isA(String.class))).andReturn(owlDatatypeIRI).anyTimes();
    replay(owlDatatype, owlDatatypeIRI, datatypeIRI, SimpleOntologyValues.class, org.semanticweb.owlapi.model.IRI.class);
    assertEquals(datatypeIRI, SimpleOntologyValues.mobiDatatype(owlDatatype).getIRI());
}