### Question:
DimapAccessor extends Static { public static int[] readRasterDimension(final Element doc) { final Element ele = firstElement(doc, TAG_RASTER_DIMENSIONS); final int rows = textValueSafe(ele, TAG_NROWS, Integer.class); final int cols = textValueSafe(ele, TAG_NCOLS, Integer.class); final int bands = textValueSafe(ele, TAG_NBANDS, Integer.class); return new int[]{rows, cols, bands}; } 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 testReadRasterDimension(){ final int[] dims = DimapAccessor.readRasterDimension(docSample); assertNotNull(dims); assertEquals(3, dims.length); assertEquals(7308, dims[0]); assertEquals(7762, dims[1]); assertEquals(4, dims[2]); }