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

    //GIVEN
    String nullString = null;
    given(bufferedReaderFactory.createBufferedReader(SCHEMA)).willReturn(reader);
    given(reader.readLine()).willReturn("first line", nullString);
    //WHEN
    underTest.doPost(request, response);
    //THEN
    verify(writer).write(Mockito.anyString());
}