@Test
public void testGroupExistsWithResource() {

    boolean result = engine.groupExists(VALUE_FACTORY.createIRI(groupId1));
    assertTrue(result);
    result = engine.groupExists(VALUE_FACTORY.createIRI("http://mobi.com/groups/error"));
    assertFalse(result);
}