### Question:
AbstractDriverProductWriterPlugIn implements ProductWriterPlugIn { @Override public final String[] getFormatNames() { return new String[] {this.writerDriver.getWriterPluginFormatName()}; } 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 testFormatNames() { if (GDALInstallInfo.INSTANCE.isPresent()) { String[] formatNames = this.writerPlugIn.getFormatNames(); assertNotNull(formatNames); assertEquals(1, formatNames.length); String formatNamesToCheck = getFormatNameToCheck(); assertEquals(formatNamesToCheck, formatNames[0]); } }