@Test
public void testInitializeWithInvalidClassListShouldThrowClassFormatException() throws IOException {

    //GIVEN
    List<String> list = new ArrayList<>();
    list.add(FOLDER_NAME);
    Collection<File> filesInFolder = new ArrayList<>();
    File invalidClass = new File("InvalidClass.class");
    filesInFolder.add(invalidClass);
    given(fileUtils.listFiles(FOLDER)).willReturn(filesInFolder);
    given(javaClassFactory.createJavaClass(invalidClass)).willThrow(new ClassFormatException());
    Whitebox.setInternalState(underTest, "logger", logger);
    //WHEN
    underTest.initialize(list);
    //THEN
    verify(logger).info(Mockito.anyString(), Mockito.any(ClassFormatException.class));
}