### Question:
JP2ProductWriterPlugIn implements ProductWriterPlugIn { @Override public Class[] getOutputTypes() { return JP2Constants.OUTPUT_TYPES; }  @Override EncodeQualification getEncodeQualification(Product product); @Override Class[] getOutputTypes(); @Override ProductWriter createWriterInstance(); @Override String[] getFormatNames(); @Override String[] getDefaultFileExtensions(); @Override String getDescription(Locale locale); @Override SnapFileFilter getProductFileFilter();  }### Answer:
@Test public void testOutputTypes() { final Class[] classes = plugIn.getOutputTypes(); assertNotNull(classes); assertEquals(2, classes.length); final List<Class> list = Arrays.asList(classes); assertEquals(true, list.contains(File.class)); assertEquals(true, list.contains(String.class)); }