@Test public void testCalculateValidationStatus() {

    MetadataValidationStatus metadataValidationStatus = inspireValidatorUtils
        .calculateValidationStatus(inspireValidatorUtils.TEST_STATUS_INTERNAL_ERROR);
    assertEquals(MetadataValidationStatus.NEVER_CALCULATED, metadataValidationStatus);
    metadataValidationStatus = inspireValidatorUtils.calculateValidationStatus(inspireValidatorUtils.TEST_STATUS_UNDEFINED);
    assertEquals(MetadataValidationStatus.NEVER_CALCULATED, metadataValidationStatus);
    metadataValidationStatus = inspireValidatorUtils.calculateValidationStatus(inspireValidatorUtils.TEST_STATUS_NOT_APPLICABLE);
    assertEquals(MetadataValidationStatus.DOES_NOT_APPLY, metadataValidationStatus);
    metadataValidationStatus = inspireValidatorUtils.calculateValidationStatus(inspireValidatorUtils.TEST_STATUS_PASSED);
    assertEquals(MetadataValidationStatus.VALID, metadataValidationStatus);
    metadataValidationStatus = inspireValidatorUtils.calculateValidationStatus(inspireValidatorUtils.TEST_STATUS_PASSED_MANUAL);
    assertEquals(MetadataValidationStatus.VALID, metadataValidationStatus);
    metadataValidationStatus = inspireValidatorUtils.calculateValidationStatus(inspireValidatorUtils.TEST_STATUS_FAILED);
    assertEquals(MetadataValidationStatus.INVALID, metadataValidationStatus);
}