@Test
public void testFromInputStream() throws IOException {

    HtmlAdapter<Profile> adapter = jspoon.adapter(Profile.class);
    URL baseUrl = URI.create("http://localhost/profile").toURL();
    try (ByteArrayInputStream inputStream
                 = new ByteArrayInputStream(HTML_CONTENT.getBytes())) {
        Profile profile = adapter.fromInputStream(inputStream, baseUrl);
        assertEquals("John", profile.firstName);
        assertEquals("Doe", profile.lastName);
    }
}