### Question:
RapidEyeL1ReaderPlugin extends BaseProductReaderPlugIn { public DecodeQualification getDecodeQualification(Object input) { if(SystemUtils.IS_OS_MAC){ return DecodeQualification.UNABLE; } return super.getDecodeQualification(input); } RapidEyeL1ReaderPlugin(); @Override MetadataInspector getMetadataInspector(); @Override Class[] getInputTypes(); @Override ProductReader createReaderInstance(); DecodeQualification getDecodeQualification(Object input); @Override String[] getFormatNames(); @Override String[] getDefaultFileExtensions(); @Override String getDescription(Locale locale);  }### Answer:
@Test public void testDecodeQualificationForXML() throws IOException { assumeTrue(TestUtil.testdataAvailable()); Date startDate = Calendar.getInstance().getTime(); DecodeQualification decodeQualification = plugIn.getDecodeQualification(TestUtil.getTestFile(productsFolder + "dimap/test_ST4_MT.xml")); assertEquals(DecodeQualification.UNABLE, decodeQualification); decodeQualification = plugIn.getDecodeQualification(TestUtil.getTestFile(productsFolder + "Demo03_1B/2009-04-16T104920_RE4_1B-NAC_3436599_84303_metadata.xml")); assertEquals(DecodeQualification.INTENDED, decodeQualification); Date endDate = Calendar.getInstance().getTime(); assertTrue("The decoding time for the file is too big!", (endDate.getTime() - startDate.getTime()) / 1000 < 30); }