### Question:
TransFileListener implements FileListener { public boolean acceptsXml( String nodeName ) { if ( "transformation".equals( nodeName ) ) { return true; } return false; }  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 testAcceptsXml() throws Exception { assertFalse( transFileListener.acceptsXml( null ) ); assertFalse( transFileListener.acceptsXml( "" ) ); assertFalse( transFileListener.acceptsXml( "Transformation" ) ); assertTrue( transFileListener.acceptsXml( "transformation" ) ); }