@Test void testValidateShouldThrowExceptionWhenOnlyUpperCaseCharactersArePresent() { String password = "ASDASDASD"; BadRequestException exception = assertThrows(BadRequestException.class, () -> underTest.validate(password)); assertEquals("There must be 3 different classes. The classes are: Upper-case characters, Lower-case characters, Digits and Special characters.", exception.getMessage()); }
void validate(String password) { validateLength(password); validateComplexity(password); }
FreeIpaPasswordValidator { void validate(String password) { validateLength(password); validateComplexity(password); } }
FreeIpaPasswordValidator { void validate(String password) { validateLength(password); validateComplexity(password); }  }
FreeIpaPasswordValidator { void validate(String password) { validateLength(password); validateComplexity(password); }   }
FreeIpaPasswordValidator { void validate(String password) { validateLength(password); validateComplexity(password); }    }