Text { public String get() throws Exception { final InputStream in = textSupplier.get(); try (final Reader reader = new InputStreamReader(in)) { return IoUtils.from(reader); } }  void read(final DangerousSupplier<OutputStream> supplier); void read(final DangerousConsumer<InputStream> consumer); String get();  }
@Test public void testGet() throws Exception { assertEquals(expected, text.get()); }