protected static String getFileType( final String fineName ) {
    final String fileExt = fineName == null ? null : FilenameUtils.getExtension( fineName );
    String fileType = BaseMessages.getString( PKG, "System.FileType.File" );
    if ( "ktr".equals( fileExt ) ) {
      fileType = BaseMessages.getString( PKG, "System.FileType.Transformation" );
    } else if ( "kjb".equals( fileExt ) ) {
      fileType = BaseMessages.getString( PKG, "System.FileType.Job" );
    }
    return fileType;
  }
@Test
  public void textGetFileType() {

    assertEquals( "File", Spoon.getFileType( null ) );
    assertEquals( "File", Spoon.getFileType( "" ) );
    assertEquals( "File", Spoon.getFileType( " " ) );
    assertEquals( "File", Spoon.getFileType( "foo" ) );
    assertEquals( "File", Spoon.getFileType( "foo/foe" ) );
    assertEquals( "File", Spoon.getFileType( "ktr" ) );
    assertEquals( "File", Spoon.getFileType( "ktr" ) );

    assertEquals( "Transformation", Spoon.getFileType( "foo/foe.ktr" ) );
    assertEquals( "Transformation", Spoon.getFileType( "foe.ktr" ) );
    assertEquals( "Transformation", Spoon.getFileType( ".ktr" ) );

    assertEquals( "Job", Spoon.getFileType( "foo/foe.kjb" ) );
    assertEquals( "Job", Spoon.getFileType( "foe.kjb" ) );
    assertEquals( "Job", Spoon.getFileType( ".kjb" ) );
  }