### Question:
TransFileListener implements FileListener { public String[] getSupportedExtensions() { return new String[]{ "ktr", "xml" }; }  boolean open( Node transNode, String fname, boolean importfile ); boolean save( EngineMetaInterface meta, String fname, boolean export ); void syncMetaName( EngineMetaInterface meta, String name ); boolean accepts( String fileName ); boolean acceptsXml( String nodeName ); String[] getFileTypeDisplayNames( Locale locale ); String getRootNodeName(); String[] getSupportedExtensions();  }### Answer:
@Test public void testGetSupportedExtensions() throws Exception { String[] extensions = transFileListener.getSupportedExtensions(); assertNotNull( extensions ); assertEquals( 2, extensions.length ); assertEquals( "ktr", extensions[0] ); assertEquals( "xml", extensions[1] ); }