@Test
public void testInvalidSmile()
{

    SmileResponse<User> response = handler.handle(null, createSmileResponse(OK, ImmutableMap.of(
            "age", "foo"
    )));
    assertFalse(response.hasValue());
    assertEquals(response.getException().getMessage(),
            "Unable to create " + User.class + " from SMILE response");
    assertInstanceOf(response.getException().getCause(), InvalidFormatException.class);
    assertContains(response.getException().getCause().getMessage(),
            "Cannot deserialize value of type `int` from String \"foo\": not a valid Integer value");
}