### Question:
ValidationService implements Reloadable { @PostConstruct @Override public void reload() { passwordRegex = Utils.safePatternCompile(settings.getProperty(RestrictionSettings.ALLOWED_PASSWORD_REGEX)); unrestrictedNames = new HashSet<>(settings.getProperty(RestrictionSettings.UNRESTRICTED_NAMES)); restrictedNames = settings.getProperty(RestrictionSettings.ENABLE_RESTRICTED_USERS) ? loadNameRestrictions(settings.getProperty(RestrictionSettings.RESTRICTED_USERS)) : HashMultimap.create(); } ValidationService(); @PostConstruct @Override void reload(); ValidationResult validatePassword(String password, String username); boolean validateEmail(String email); boolean isEmailFreeForRegistration(String email, CommandSender sender); boolean isCountryAdmitted(String hostAddress); boolean isUnrestricted(String name); boolean fulfillsNameRestrictions(Player player);  }### Answer:
@Test public void shouldLogWarningForInvalidRestrictionRule() { Logger logger = TestHelper.setupLogger(); given(settings.getProperty(RestrictionSettings.ENABLE_RESTRICTED_USERS)).willReturn(true); given(settings.getProperty(RestrictionSettings.RESTRICTED_USERS)) .willReturn(Arrays.asList("Bobby;127.0.0.4", "Tamara;")); validationService.reload(); ArgumentCaptor<String> stringCaptor = ArgumentCaptor.forClass(String.class); verify(logger).warning(stringCaptor.capture()); assertThat(stringCaptor.getValue(), containsString("Tamara;")); }