public static StreamDecoder create(Decoder iteratorDecoder) {
    return new StreamDecoder(iteratorDecoder, null);
  }
@Test
  void simpleDeleteDecoderTest() {
    MockWebServer server = new MockWebServer();
    server.enqueue(new MockResponse().setBody("foo\nbar"));

    StreamInterface api = Feign.builder()
        .decoder(StreamDecoder.create((r, t) -> {
          BufferedReader bufferedReader = new BufferedReader(r.body().asReader(UTF_8));
          return bufferedReader.lines().iterator();
        }, (r, t) -> "str"))
        .doNotCloseAfterDecode()
        .target(StreamInterface.class, server.url("/").toString());

    String str = api.str();
    assertThat(str).isEqualTo("str");
  }