@Test
public void testIntARGB()
    throws MimeTypeParseException, NitfFormatException, IOException, NoSuchMethodException,
        IllegalAccessException, InvocationTargetException, InstantiationException {

  int originalWidth = 200;
  int originalHeight = 100;
  int chipWidth = 160;
  int chipHeight = 80;
  NitfSegmentsFlow nitfSegmentsFlow = createGenericNitfSegmentFlow(originalWidth, originalHeight);
  BufferedImage chipImage = new BufferedImage(chipWidth, chipHeight, BufferedImage.TYPE_INT_ARGB);
  BinaryContent binaryContent =
      catalogOutputAdapter.getNitfBinaryContent(chipImage, nitfSegmentsFlow, 0, 0);
  NitfSegmentsFlow chipNitfSegmentFlow =
      new NitfParserInputFlowImpl().inputStream(binaryContent.getInputStream()).allData();
  chipNitfSegmentFlow.forEachImageSegment(
      imageSegment1 -> {
        assertThat(imageSegment1.getPixelValueType(), is(PixelValueType.INTEGER));
        assertThat(imageSegment1.getImageRepresentation(), is(ImageRepresentation.RGBTRUECOLOUR));
        assertThat(imageSegment1.getActualBitsPerPixelPerBand(), is(8));
        assertThat(imageSegment1.getNumberOfBitsPerPixelPerBand(), is(8));
        assertThat(imageSegment1.getImageBand(1).getImageRepresentation(), is("R"));
        assertThat(imageSegment1.getImageBand(2).getImageRepresentation(), is("G"));
        assertThat(imageSegment1.getImageBand(3).getImageRepresentation(), is("B"));
      });
}