@Test
public void testGetCompiledResourceWithList() throws Exception {

    // Setup:
    Model expected = MODEL_FACTORY.createModel();
    expected.add(VALUE_FACTORY.createIRI("http://mobi.com/test/ontology"), typeIRI, VALUE_FACTORY.createIRI("http://www.w3.org/2002/07/owl#Ontology"));
    doReturn(expected).when(utilsService).getCompiledResource(eq(testCommits.stream().map(commit ->
            commit.getResource()).collect(Collectors.toList())), any(RepositoryConnection.class));
    Model result = manager.getCompiledResource(testCommits);
    verify(utilsService).getCompiledResource(eq(testCommits.stream().map(commit ->
            commit.getResource()).collect(Collectors.toList())), any(RepositoryConnection.class));
    result.forEach(statement -> assertTrue(expected.contains(statement)));
}