@Test
public void testUserExistsWithResource() {

    boolean result = engine.userExists(VALUE_FACTORY.createIRI(userId));
    assertTrue(result);
    result = engine.userExists(VALUE_FACTORY.createIRI("http://mobi.com/users/error"));
    assertFalse(result);
}