RoadNameValidator implements ModelValidator<String> { public static String validateRoadName(String roadName) { return VALIDATOR.validate(roadName); }  @Override String validate(String roadName); static String validateRoadName(String roadName);  }
@Test public void staticValidator() { assertThat(RoadNameValidator.validateRoadName("road"), is("road")); }
@Test(expected = InvalidRoadNameException.class) public void staticValidatorInvokedWithInvalidRoadName() { RoadNameValidator.validateRoadName("2"); }