@Test
public void test20DoPostSetErrorException() throws IOException {

    PolicyManagerServlet servlet = new PolicyManagerServlet();
    HttpServletRequest mockRequest = Mockito.mock(HttpServletRequest.class);
    HttpServletResponse mockResponse = Mockito.mock(HttpServletResponse.class);
    doThrow(IOException.class).when(mockRequest).getReader();
    doThrow(IOException.class).when(mockResponse).sendError(any(Integer.class), any(String.class));
    servlet.doPost(mockRequest, mockResponse);
    verify(mockRequest).getReader();
}