@SuppressWarnings("unchecked")
@Test
public void testGetPolicyUserInfoException() throws IOException {

    HttpServletResponse mockResponse = Mockito.mock(HttpServletResponse.class);
    when(mockResponse.getWriter()).thenThrow(IOException.class);
    PolicyUserInfoController controller = new PolicyUserInfoController();
    controller.getPolicyUserInfo(request, mockResponse);
    verify(mockResponse, atLeast(1)).getWriter();
}