@Test
public void testStoreGroup() {

    Resource newGroupId = VALUE_FACTORY.createIRI("http://mobi.com/users/newgroup");
    Group newGroup = groupFactory.createNew(newGroupId);
    newGroup.setProperty(VALUE_FACTORY.createLiteral("newgroup"), VALUE_FACTORY.createIRI(DCTERMS.TITLE.stringValue()));
    engine.storeGroup(newGroup);
    RepositoryConnection connection = repo.getConnection();
    RepositoryResult<Statement> statements = connection.getStatements(newGroupId, null, null);
    assertTrue(statements.hasNext());
    connection.close();
}