### Question:
AlosPRIMetadata extends XmlMetadata { public List<ImageMetadata> getImageMetadataList() { return componentMetadata.stream().filter(metadata -> metadata instanceof ImageMetadata).map(metadata -> (ImageMetadata) metadata).collect(Collectors.toList()); } 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 testGetNoDataValue() throws Exception { assertEquals(0, metadata.getImageMetadataList().get(0).getNoDataValue()); }
@Test public void testGetSaturatedPixelValue() throws Exception { assertNotEquals(Integer.MAX_VALUE, metadata.getImageMetadataList().get(0).getSaturatedValue()); }
@Test public void testGetScaleFactor() throws Exception { assertEquals(0.5010, metadata.getImageMetadataList().get(0).getGain(), 0.0); assertEquals(0.5010, metadata.getImageMetadataList().get(1).getGain(), 0.0); assertEquals(0.5010, metadata.getImageMetadataList().get(2).getGain(), 0.0); }
@Test public void testGetPixelFormat() throws Exception { assertEquals(20, metadata.getImageMetadataList().get(0).getPixelDataType()); assertEquals(20, metadata.getImageMetadataList().get(1).getPixelDataType()); assertEquals(20, metadata.getImageMetadataList().get(2).getPixelDataType()); }
@Test public void testGetBandUnit() throws Exception { assertEquals("W.M-2.SR-1.uM-1", metadata.getImageMetadataList().get(0).getBandUnit()); }
@Test public void testGetBandName() throws Exception { assertEquals("ALPSMB038921910", metadata.getImageMetadataList().get(0).getBandName()); assertEquals("ALPSMF038921800", metadata.getImageMetadataList().get(1).getBandName()); assertEquals("ALPSMN038921855", metadata.getImageMetadataList().get(2).getBandName()); }