@Test
public void niceErrorOnUnconfiguredType() throws ParseException, IOException {

  thrown.expect(IllegalStateException.class);
  thrown.expectMessage("type int not in configured handlers");
  decoder.decode(statusFailedResponse(), int.class);
}