@Test
  void decodingExceptionGetWrappedInDismiss404Mode() throws Throwable {
    server.enqueue(new MockResponse().setResponseCode(404));

    final TestInterfaceAsync api =
        newAsyncBuilder()
            .dismiss404()
            .decoder(
                (response, type) -> {
                  assertEquals(404, response.status());
                  throw new NoSuchElementException();
                })
            .target("http://localhost:" + server.getPort());

    DecodeException exception = assertThrows(DecodeException.class, () -> unwrap(api.post()));
    assertThat(exception).hasCauseInstanceOf(NoSuchElementException.class);
  }
The type of a parameter value may not be the desired type to encode as. Prefer the interface
type.
okhttp/src/test/java/feign/okhttp/OkHttpClientAsyncTest.java