@Test(expectedExceptions = UnexpectedResponseException.class)
public void testJsonErrorResponse()
{

    String json = "{\"error\": true}";
    handler.handle(null, mockResponse()
            .status(INTERNAL_SERVER_ERROR)
            .contentType(JSON_UTF_8)
            .body(json)
            .build());
}