@Test
public void testGetBinaryContent()
    throws IOException, MimeTypeParseException, InterruptedException {

  BufferedImage suppliedImage = ImageIO.read(getInputStream(I_3001A));
  suppliedImage =
      new BufferedImage(
          suppliedImage.getWidth(), suppliedImage.getHeight(), BufferedImage.TYPE_3BYTE_BGR);
  BinaryContent binaryContent = catalogOutputAdapter.getBinaryContent(suppliedImage);
  assertThat(binaryContent, is(notNullValue()));
  assertThat(binaryContent.getInputStream(), is(notNullValue()));
  BufferedImage returnedImage = ImageIO.read(binaryContent.getInputStream());
  assertThat(returnedImage.getWidth(), is(1024));
  assertThat(returnedImage.getHeight(), is(1024));
  verify(lock).acquire();
  verify(lock).release();
}