@Test
public void testWhenAnExistingFileIsGivenShouldEnableSecurity() throws IOException {

    //GIVEN
    String filePath = "file.txt";
    given(propertyHolder.get(WILMA_ADMIN_HOSTS_FILE)).willReturn(filePath);
    given(bufferedReaderFactory.createBufferedReaderFromFilePath(filePath)).willReturn(bufferedReader);
    given(bufferedReader.ready()).willReturn(false);
    //WHEN
    underTest.parseFile();
    //THEN
    verify(wilmaAdminHostsDTO).setSecurityEnabled(true);
}