@Test(expected = IllegalStateException.class)
public void testGetImageNullInputStream() throws IOException {

  ResourceResponse resourceResponse = mock(ResourceResponse.class);
  Resource resource = mock(Resource.class);
  when(resourceResponse.getResource()).thenReturn(resource);
  when(resource.getInputStream()).thenReturn(null);
  catalogOutputAdapter.getImage(resourceResponse);
}