### Question:
MappingIdValidationImpl extends AbstractSimpleStringValidation implements MappingIdValidation { @Override protected void validate(ValidationContext<String> context) { validateNotNull(context); validateWithoutWhitespaces(context); validateOnlyAlphabeticDigitOrAllowedParts(context, '.','-','_'); validateLength(context); }    }### Answer:
@Test public void check_5_chars_min_for_id() { assertTrue(validationToTest.validate("12345").isValid()); assertFalse(validationToTest.validate("1234").isValid()); assertFalse(validationToTest.validate("123").isValid()); assertFalse(validationToTest.validate("").isValid()); }
@Test public void check_80_chars_max_for_id() { assertTrue(validationToTest.validate(CONST_80_CHARS).isValid()); assertFalse(validationToTest.validate(CONST_80_CHARS + "1").isValid()); }
@Test public void check_whitespaces_not_accepted_inside_id() { assertFalse(validationToTest.validate("12345 6").isValid()); assertFalse(validationToTest.validate(" 123456").isValid()); assertFalse(validationToTest.validate("123456 ").isValid()); assertFalse(validationToTest.validate("123456\n").isValid()); assertFalse(validationToTest.validate("123456\r").isValid()); }
@Test public void check_percentage_not_accepted_inside_id() { assertFalse(validationToTest.validate("12345%6").isValid()); }