}
@Test()
public void testAddressRegex() {
validator.setMatch("^(\\d+ \\w+)|(\\w+ \\d+)$");
ValidatorMessage message = (ValidatorMessage) validator.validate("123", "");
assertTrue(message.hasError());
message = (ValidatorMessage) validator.validate("Main", "");
assertTrue(message.hasError());
message = (ValidatorMessage) validator.validate("123 Main", "");
assertFalse(message.hasError());
message = (ValidatorMessage) validator.validate("Main 123", "");
assertFalse(message.hasError());
}