### Question:
JP2ProductWriterPlugIn implements ProductWriterPlugIn { @Override public String[] getFormatNames() { return JP2Constants.FORMAT_NAMES; }  @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 testFormatNames() { final String[] formatNames = plugIn.getFormatNames(); assertNotNull(formatNames); assertEquals(1, formatNames.length); assertEquals("JPEG2000", formatNames[0]); }