AMImage implements AdaptiveMedia<AMImageProcessor> { @Override public InputStream getInputStream() { return _supplier.get(); } AMImage(
		Supplier<InputStream> supplier,
		AMImageAttributeMapping amImageAttributeMapping, URI uri); @Override InputStream getInputStream(); @Override URI getURI(); @Override Optional<V> getValueOptional(
		AMAttribute<AMImageProcessor, V> amAttribute);  }
@Test public void testGetInputStreamDelegatesOnSupplier() { InputStream inputStream = Mockito.mock(InputStream.class); Supplier<InputStream> supplier = () -> inputStream; AMImageAttributeMapping amImageAttributeMapping = AMImageAttributeMapping.fromProperties(Collections.emptyMap()); AMImage amImage = new AMImage( supplier, amImageAttributeMapping, URI.create("/")); Assert.assertEquals(inputStream, amImage.getInputStream()); }