public static String getEvaluationMethodCode( int evaluationMethodIndex ) {
    if ( evaluationMethodIndex < 0 || evaluationMethodIndex >= EVALUATION_METHOD_CODES.length ) {
      evaluationMethodIndex = DEFAULT_EVALUATION_METHOD;
    }

    return EVALUATION_METHOD_CODES[ evaluationMethodIndex ];
  }
@Test
  public void testGetEvaluationMethodCode() throws Exception {
    CheckSumMeta checkSumMeta = new CheckSumMeta();

    // Passing a negative number
    String evaluationMethodCode = CheckSumMeta.getEvaluationMethodCode( A_NEGATIVE_NUMBER );
    assertEquals( Const.KETTLE_CHECKSUM_EVALUATION_METHOD_DEFAULT, evaluationMethodCode );

    // Passing a huge number
    evaluationMethodCode = CheckSumMeta.getEvaluationMethodCode( A_HUGE_POSITIVE_NUMBER );
    assertEquals( Const.KETTLE_CHECKSUM_EVALUATION_METHOD_DEFAULT, evaluationMethodCode );

    // The Codes
    evaluationMethodCode = CheckSumMeta.getEvaluationMethodCode( CheckSumMeta.EVALUATION_METHOD_BYTES );
    assertEquals( Const.KETTLE_CHECKSUM_EVALUATION_METHOD_BYTES, evaluationMethodCode );

    evaluationMethodCode = CheckSumMeta.getEvaluationMethodCode( CheckSumMeta.EVALUATION_METHOD_PENTAHO_STRINGS );
    assertEquals( Const.KETTLE_CHECKSUM_EVALUATION_METHOD_PENTAHO_STRINGS, evaluationMethodCode );

    evaluationMethodCode = CheckSumMeta.getEvaluationMethodCode( CheckSumMeta.EVALUATION_METHOD_NATIVE_STRINGS );
    assertEquals( Const.KETTLE_CHECKSUM_EVALUATION_METHOD_NATIVE_STRINGS, evaluationMethodCode );
  }