@Test
public void testInvalidSmile()
{

    try {
        handler.handle(null, createSmileResponse(OK, ImmutableMap.of(
                "age", "foo"
        )));
    }
    catch (IllegalArgumentException e) {
        assertEquals(e.getMessage(), "Unable to create " + User.class + " from SMILE response");
        assertInstanceOf(e.getCause(), InvalidFormatException.class);
        assertContains(e.getCause().getMessage(), "Cannot deserialize value of type `int` from String \"foo\": not a valid Integer value");
    }
}