@Test
public void getCompiledResourceWithIdTest() {

    try (RepositoryConnection conn = repo.getConnection()) {
        // Setup:
        List<Resource> commits = Stream.of(VALUE_FACTORY.createIRI("http://mobi.com/test/commits#test2"), VALUE_FACTORY.createIRI("http://mobi.com/test/commits#test1")).collect(Collectors.toList());
        Model expected = MODEL_FACTORY.createModel(Collections.singleton(
                VALUE_FACTORY.createStatement(VALUE_FACTORY.createIRI("http://mobi.com/test/ontology"), titleIRI, VALUE_FACTORY.createLiteral("Test 2 Title"))));
        Model result = service.getCompiledResource(commits, conn);
        result.forEach(statement -> assertTrue(expected.contains(statement)));
    }
}