### Question:
AbstractDriverProductWriterPlugIn implements ProductWriterPlugIn { @Override public final Class[] getOutputTypes() { return new Class[] {String.class, File.class}; } protected  AbstractDriverProductWriterPlugIn(String fileExtension, String driverName, String driverDisplayName, String creationDataTypes); @Override final String getDescription(Locale locale); @Override final String[] getFormatNames(); @Override final String[] getDefaultFileExtensions(); @Override final SnapFileFilter getProductFileFilter(); @Override final EncodeQualification getEncodeQualification(Product product); @Override final Class[] getOutputTypes(); @Override final ProductWriter createWriterInstance(); final GDALDriverInfo getWriterDriver();  }### Answer:
@Test public void testOutputTypes() { if (GDALInstallInfo.INSTANCE.isPresent()) { Class[] classes = this.writerPlugIn.getOutputTypes(); assertNotNull(classes); assertEquals(2, classes.length); List<Class> list = Arrays.asList(classes); assertTrue(list.contains(File.class)); assertTrue(list.contains(String.class)); } }