@Test void testValidateShouldThrowExceptionWhenThePasswordIsNotLongEnough() { String password = "1234567"; BadRequestException exception = assertThrows(BadRequestException.class, () -> underTest.validate(password)); assertEquals("Password must be between minimum 8 and maximum 16 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); }    }