Assert.assertFalse(connection2.hasStatement(subject, predicate, object1, true));
connection2.add(subject,predicate,object1);
Assert.assertTrue(connection2.hasStatement(subject, predicate, object1, true));
connection2.commit();
} finally {
connection2.close();
}
RepositoryConnection connection3 = repository.getConnection();