@Test
public void getCommitChainAscTest() {

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