@Test
public void missingEntriesGenerateLogMessages() throws NoSuchFieldException, IllegalAccessException {

    List<String> fullList = generateList(4);
    List<String> batch = generateList(3);
    final BatchProcessor sut = makeSut(batch, fullList.size());
    final Logger fakeLogger = mock(Logger.class);
    ArgumentCaptor<String> captor = ArgumentCaptor.forClass(String.class);
    InjectionUtils.injectField(sut, BatchProcessor.class, "LOG", fakeLogger);
    // Process
    sut.process("Some collection",
            b -> "",
            fullList,
            String.class,
            mock(Consumer.class));
    // Assert
    final List<String> allValues = captor.getAllValues();
    verify(fakeLogger, times(2)).warn(captor.capture());
    assertEquals("Got fewer results 3 < 4", allValues.get(0));
    assertEquals("There are referred dependencies not related to known artifacts", allValues.get(1));
}