source: class HtmlAdapterTest {
  
      private static final String HTML_CONTENT;
      private Jspoon jspoon;
  
      @Test
      public void testFromInputStream() throws IOException {
  
target:         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);
          }
      }
  
  }