### Question:
AlosAV2Metadata extends XmlMetadata { public int getPixelDataType() { int retVal; int value = 8; try { value = Integer.parseInt(getAttributeValue(AlosAV2Constants.PATH_IMG_NBITS, "8")); } catch (NumberFormatException e) { warn(MISSING_ELEMENT_WARNING, AlosAV2Constants.PATH_IMG_NBITS); } switch (value) { case 8: retVal = ProductData.TYPE_UINT8; break; case 16: retVal = ProductData.TYPE_INT16; break; case 32: retVal = ProductData.TYPE_FLOAT32; break; default: retVal = ProductData.TYPE_UINT8; break; } return retVal; } AlosAV2Metadata(String name); @Override String getFileName(); @Override String getProductName(); @Override String getProductDescription(); @Override String getFormatName(); @Override String getMetadataProfile(); @Override int getRasterWidth(); @Override int getRasterHeight(); @Override String[] getRasterFileNames(); @Override ProductData.UTC getProductStartTime(); @Override ProductData.UTC getProductEndTime(); String[] getBandNames(); Map<String, String> getBandUnits(); @Override int getNumBands(); int getNoDataValue(); Color getNoDataColor(); int getSaturatedPixelValue(); Color getSaturatedColor(); ProductData.UTC getCenterTime(); float getGain(final String bandName); float getBias(final String bandName); String getProcessingLevel(); InsertionPoint[] getGeopositionPoints(); int getPixelDataType();  }### Answer:
@Test public void testGetPixelFormat() throws Exception { assertEquals(20, metadata.getPixelDataType()); }