### Question:
HtmlAdapter { public T fromInputStream(@NotNull InputStream inputStream) throws IOException { return fromInputStream(inputStream, null); } HtmlAdapter(Jspoon jspoon, Class<T> clazz); T fromHtml(String htmlContent, T instance); T fromHtml(@NotNull String htmlContent); T fromInputStream(@NotNull InputStream inputStream); T fromInputStream(@NotNull InputStream inputStream, @Nullable URL baseUrl); T fromInputStream(@NotNull InputStream inputStream, @Nullable Charset charset, @Nullable URL baseUrl, @Nullable T instance); T fromInputStream(@NotNull InputStream inputStream, @Nullable Charset charset, @Nullable URL baseUrl);  }### Answer:
@Test public void testFromInputStream() throws IOException { HtmlAdapter<Profile> adapter = jspoon.adapter(Profile.class); URL baseUrl = URI.create("http: try (ByteArrayInputStream inputStream = new ByteArrayInputStream(HTML_CONTENT.getBytes())) { Profile profile = adapter.fromInputStream(inputStream, baseUrl); assertEquals("John", profile.firstName); assertEquals("Doe", profile.lastName); } }