@Test(expectedExceptions = CannotParseExternalResourceException.class)
public void testWhenGivenFileDoesNotExistShouldThrowCannotParseExternalResourceException() throws IOException {

    //GIVEN
    String filePath = "file.txt";
    given(propertyHolder.get(WILMA_ADMIN_HOSTS_FILE)).willReturn(filePath);
    given(bufferedReaderFactory.createBufferedReaderFromFilePath(filePath)).willThrow(
            new CannotParseExternalResourceException("error", new IOException()));
    //WHEN
    underTest.parseFile();
    //THEN
    verify(wilmaAdminHostsDTO, never()).setSecurityEnabled(Mockito.anyBoolean());
    verify(wilmaAdminHostsDTO, never()).setWilmaAdminHosts(Mockito.anyListOf(String.class));
}