@Test(expected = IllegalArgumentException.class)
public void testGetImageNullResource() throws IOException {

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