@Test
public void testOwlapiLiteral() throws Exception {

    Literal literal = mock(Literal.class);
    IRI datatypeIRI = mock(IRI.class);
    org.semanticweb.owlapi.model.IRI owlIRI = mock(org.semanticweb.owlapi.model.IRI.class);
    
    expect(datatypeIRI.stringValue()).andReturn("http://www.w3.org/2001/XMLSchema#string").anyTimes();
    expect(literal.getDatatype()).andReturn(datatypeIRI);  
    expect(literal.getLanguage()).andReturn(Optional.empty());
    expect(literal.getLabel()).andReturn("test");
    
    mockStaticPartial(SimpleOntologyValues.class, "owlapiIRI");
    expect(SimpleOntologyValues.owlapiIRI(isA(IRI.class))).andReturn(owlIRI).anyTimes();
    replay(literal, datatypeIRI, SimpleOntologyValues.class);
    
    OWLLiteral owlLiteral = SimpleOntologyValues.owlapiLiteral(literal);
    assertEquals("test", owlLiteral.getLiteral());
}