@Test
public void getDocumentIRIThatExistsTest() throws Exception {

    // Setup:
    String recordIRI = "https://mobi.com/records/test";
    when(ontologyManager.getOntologyRecordResource(any(Resource.class))).thenReturn(Optional.of(vf.createIRI(recordIRI)));
    IRI result = mapper.getDocumentIRI(owlIRI);
    assertNotNull(result);
    assertEquals(recordIRI.replace("https:", MobiOntologyIRIMapper.protocol), result.getIRIString());
}