@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());
}