### Question:
AlosPRIMetadata extends XmlMetadata { public Map<String, Float[]> bandOffset() { Map<String, Float[]> bandOffset = new HashMap<>(); for (ImageMetadata imageMetadata : componentMetadata) { float originX = (imageMetadata.getInsertPointX() - upperLeftPointOrigin.x) / imageMetadata.getPixelSizeX(); float originY = (upperLeftPointOrigin.y - imageMetadata.getInsertPointY()) / imageMetadata.getPixelSizeY(); bandOffset.put(imageMetadata.getBandName(), new Float[]{originX, originY}); } return bandOffset; } AlosPRIMetadata(String name); @Override int getNumBands(); @Override String getProductName(); @Override String getFormatName(); @Override int getRasterWidth(); @Override int getRasterHeight(); @Override String[] getRasterFileNames(); @Override ProductData.UTC getProductStartTime(); @Override ProductData.UTC getProductEndTime(); @Override ProductData.UTC getCenterTime(); @Override String getProductDescription(); @Override String getFileName(); @Override String getMetadataProfile(); boolean hasInsertPoint(); float getMaxInsertPointX(); float getMaxInsertPointY(); float getMinInsertPointX(); float getMinInsertPointY(); float getStepSizeX(); float getStepSizeY(); Map<String, Float[]> bandOffset(); String getCrsCode(); ImageMetadata.InsertionPoint getProductOrigin(); Map<String, Float> getMaxPoint(); float[][] getMaxCorners(); List<ImageMetadata> getImageMetadataList(); void setComponentMetadata(List<ImageMetadata> componentMetadata); @Deprecated void addComponentMetadata(File metadata); boolean isMultiSize();  }### Answer:
@Test public void testBandOffset() throws Exception { metadata.getProductOrigin(); assertEquals(2749, metadata.bandOffset().get("ALPSMN038921855")[0].intValue()); assertEquals(1221, metadata.bandOffset().get("ALPSMN038921855")[1].intValue()); assertEquals(0, metadata.bandOffset().get("ALPSMF038921800")[0].intValue()); assertEquals(2165, metadata.bandOffset().get("ALPSMF038921800")[1].intValue()); assertEquals(5213, metadata.bandOffset().get("ALPSMB038921910")[0].intValue()); assertEquals(0, metadata.bandOffset().get("ALPSMB038921910")[1].intValue()); }