### Question:
TransFileListener implements FileListener { public String[] getFileTypeDisplayNames( Locale locale ) { return new String[]{ "Transformations", "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 testGetFileTypeDisplayNames() throws Exception { String[] names = transFileListener.getFileTypeDisplayNames( null ); assertNotNull( names ); assertEquals( 2, names.length ); assertEquals( "Transformations", names[0] ); assertEquals( "XML", names[1] ); }