@Test
public void testGetUsername() {

    Optional<String> result = engineManager.getUsername(user.getResource());
    assertTrue(result.isPresent());
    assertEquals(result.get(), user.getUsername().get().stringValue());
    result = engineManager.getUsername(ERROR_IRI);
    assertFalse(result.isPresent());
}