@Test
public void testDoGetWhenIOExceptionShouldLogError() throws ServletException, IOException {

    //GIVEN
    given(bufferedReaderFactory.createBufferedReader(SCHEMA)).willReturn(reader);
    IOException exception = new IOException();
    given(reader.readLine()).willThrow(exception);
    //WHEN
    underTest.doGet(request, response);
    //THEN
    verify(logger).error(SCHEMA + " could not be read!", exception);
}