public boolean accepts( String fileName ) {
    if ( fileName == null || fileName.indexOf( '.' ) == -1 ) {
      return false;
    }
    String extension = fileName.substring( fileName.lastIndexOf( '.' ) + 1 );
    return extension.equals( "ktr" );
  }
@Test
  public void testAccepts() throws Exception {
    assertFalse( transFileListener.accepts( null ) );
    assertFalse( transFileListener.accepts( "NoDot" ) );
    assertTrue( transFileListener.accepts( "Trans.ktr" ) );
    assertTrue( transFileListener.accepts( ".ktr" ) );
  }