@Test
  void decodingDoesNotSwallow404ErrorsInDismiss404Mode() throws Exception {
    assertThatExceptionOfType(IllegalArgumentException.class)
        .isThrownBy(
            () -> {
              server.enqueue(new MockResponse().setResponseCode(404));

              TestInterface api =
                  new TestInterfaceBuilder()
                      .dismiss404()
                      .errorDecoder(new IllegalArgumentExceptionOn404())
                      .target("http://localhost:" + server.getPort());
              api.queryMap(Collections.<String, Object>emptyMap());
            });
  }
The type of a parameter value may not be the desired type to encode as. Prefer the interface
type.
core/src/test/java/feign/FeignUnderAsyncTest.java