Unit Testing, Property Based Testing.
validEmail.append(RandomStringUtils.randomAlphanumeric(5, 30)); validEmail.append("."); validEmail.append(RandomStringUtils.randomAlphanumeric(2, 6)); return validEmail.toString(); } @Test public void testEmailValidationForCorrectInput() { String validEmail = ""; for (int i = 0; i < 100; i++) {