ValueFactory v = repository.getValueFactory();
URI subject = v.createURI(SUBJECT1);
URI predicate = v.createURI(PREDICATE2);
Literal object = v.createLiteral(OBJECT3);
Pattern p = new Pattern(new ResourceField(subject), new ResourceField(predicate), new LiteralField(object));
KiWiReasoningConnection connection = rpersistence.getConnection();
try {
List<QueryResult> results = asList(connection.query(Collections.singleton(p), null, null, null, true));
Assert.assertEquals(1, results.size());
Assert.assertEquals(1,results.get(0).getJustifications().size());