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

              final TestInterfaceAsync api =
                  newAsyncBuilder()
                      .dismiss404()
                      .errorDecoder(new IllegalArgumentExceptionOn404())
                      .target("http://localhost:" + server.getPort());

              final CompletableFuture<Void> cf =
                  api.queryMap(Collections.<String, Object>emptyMap());
              server.takeRequest();
              unwrap(cf);
            });
  }
The type of a parameter value may not be the desired type to encode as. Prefer the interface
type.
java11/src/test/java/feign/http2client/test/Http2ClientAsyncTest.java