### Question:
AlosPRIMetadata extends XmlMetadata { public float[][] getMaxCorners() { float[][] maxCornerValue = new float[2][4]; for (ImageMetadata metadata : componentMetadata) { float[][] cornerLats = metadata.getCornerLonsLats(); if (Float.floatToIntBits(maxCornerValue[0][0]) == 0) { maxCornerValue = cornerLats; } else { if (maxCornerValue[0][0] < cornerLats[0][0]) { maxCornerValue[0][0] = cornerLats[0][0]; } if (maxCornerValue[1][0] > cornerLats[1][0]) { maxCornerValue[1][0] = cornerLats[1][0]; } if (maxCornerValue[0][1] < cornerLats[0][1]) { maxCornerValue[0][1] = cornerLats[0][1]; } if (maxCornerValue[1][1] > cornerLats[1][1]) { maxCornerValue[1][1] = cornerLats[1][1]; } if (maxCornerValue[0][2] > cornerLats[0][2]) { maxCornerValue[0][2] = cornerLats[0][2]; } if (maxCornerValue[1][2] < cornerLats[1][2]) { maxCornerValue[1][2] = cornerLats[1][2]; } if (maxCornerValue[0][3] > cornerLats[0][3]) { maxCornerValue[0][3] = cornerLats[0][3]; } if (maxCornerValue[1][3] < cornerLats[1][3]) { maxCornerValue[1][3] = cornerLats[1][3]; } } } return maxCornerValue; } 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 testGetMaxCorners() throws Exception { assertEquals(-91.78166198730469, metadata.getMaxCorners()[0][0], 0.0); assertEquals(-91.09302520751953, metadata.getMaxCorners()[0][1], 0.0); assertEquals(-94.87023162841797, metadata.getMaxCorners()[0][2], 0.0); assertEquals(-94.05230712890625, metadata.getMaxCorners()[0][3], 0.0); assertEquals(81.47442626953125, metadata.getMaxCorners()[1][0], 0.0); assertEquals(81.12564849853516, metadata.getMaxCorners()[1][1], 0.0); assertEquals(81.40962219238281, metadata.getMaxCorners()[1][2], 0.0); assertEquals(81.06774139404297, metadata.getMaxCorners()[1][3], 0.0); }