@Test
public void test22DoPostSuccess() throws IOException {

    PolicyManagerServlet servlet = new PolicyManagerServlet();
    HttpServletRequest mockRequest = Mockito.mock(HttpServletRequest.class);
    HttpServletResponse mockResponse = Mockito.mock(HttpServletResponse.class);
    PrintWriter mockPrintWriter = Mockito.mock(PrintWriter.class);
    doThrow(IOException.class).when(mockRequest).getReader();
    when(mockResponse.getWriter()).thenReturn(mockPrintWriter);
    servlet.doPost(null, mockResponse);
    verify(mockResponse).getWriter();
}