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

    HttpServletResponse mockResponse = Mockito.mock(HttpServletResponse.class);
    when(mockResponse.getWriter()).thenThrow(IOException.class);
    admin.getAdminTabEntityData(request, mockResponse);
    verify(mockResponse).getWriter();
}