@Test
public void testGetCompiledResourceWithListEmpty() throws Exception {

    // Setup:
    List<Commit> emptyList = new ArrayList<>();
    Model expected = MODEL_FACTORY.createModel();
    doReturn(expected).when(utilsService).getCompiledResource(eq(emptyList.stream().map(commit ->
            commit.getResource()).collect(Collectors.toList())), any(RepositoryConnection.class));
    Model result = manager.getCompiledResource(emptyList);
    verify(utilsService).getCompiledResource(eq(emptyList.stream().map(commit ->
            commit.getResource()).collect(Collectors.toList())), any(RepositoryConnection.class));
    assertTrue(result.isEmpty());
}