### Question:
DimapAccessor extends Static { public static int[] readColorBandMapping(final Element parent) { final Element ele = firstElement(parent, TAG_IMAGE_DISPLAY); if (ele == null) { return null; } final Element displayOrder = firstElement(ele, TAG_BAND_DISPLAY_ORDER); if (displayOrder == null) { return null; } final int red = textValueSafe(displayOrder, TAG_RED_CHANNEL, Integer.class); final int green = textValueSafe(displayOrder, TAG_GREEN_CHANNEL, Integer.class); final int blue = textValueSafe(displayOrder, TAG_BLUE_CHANNEL, Integer.class); return new int[]{red - 1, green - 1, blue - 1}; } private  DimapAccessor(); static CoordinateReferenceSystem readCRS(final Element doc); static GridExtent getGridExtent2D(Element doc); static AffineTransform readGridToCRS2D(final Element doc); static int[] readRasterDimension(final Element doc); static int readNBits(final Element doc); static int[] readColorBandMapping(final Element parent); static SampleDimension[] readSampleDimensions(final Element doc); static String readDatasetName(final Element doc); static Geometry readDatasetVertex(final Element doc); static String readDatasetThumbnail(final Element doc); static String readDatasetQuickLook(final Element doc); static String findTypeProduct(final int missionIndex, final String sensorCode); static Double findResolution(final int missionIndex, final String sensorCode); static DefaultMetadata fillMetadata(final Element doc, DefaultMetadata metadata); static Date getImagingDate(Element doc); static Date getProductionDate(Element doc);  }### Answer:
@Test public void testReadColorBandsMapping(){ final int[] mapping = DimapAccessor.readColorBandMapping(docSample); assertNotNull(mapping); assertEquals(3, mapping.length); assertEquals(0, mapping[0]); assertEquals(1, mapping[1]); assertEquals(2, mapping[2]); }