@Test(expectedExceptions = GlazeException.class)
public void handleError() throws IOException
{

   HttpResponse response = Mockito.mock(HttpResponse.class);
   Mockito.when(response.getStatusLine()).thenReturn(new BasicStatusLine(HttpVersion.HTTP_1_1, 401, "Unauth"));
   MapperResponseHandler<Bar> mrh = new MapperResponseHandler<Bar>(Bar.class);
   mrh.handleResponse(response);
}