@Test
public void getCommitChainEntityTest() {

    try (RepositoryConnection conn = repo.getConnection()) {
        // Setup:
        List<Resource> expect = Stream.of(VALUE_FACTORY.createIRI("http://mobi.com/test/commits#test3"),
                VALUE_FACTORY.createIRI("http://mobi.com/test/commits#test2")).collect(Collectors.toList());
        Resource commitId = VALUE_FACTORY.createIRI("http://mobi.com/test/commits#test3");
        Resource entityId = VALUE_FACTORY.createIRI("http://mobi.com/test/class");
        List<Resource> result = service.getCommitChain(commitId, entityId, false, conn);
        assertEquals(expect, result);
    }
}