### Question:
StringValidatorWithMaxLength { public static StringValidator lengthBetween(int minimum, int maximum) { return new StringValidator(minimum, maximum) { private static final long serialVersionUID = 1L; @Override public void onComponentTag(Component component, ComponentTag tag) { super.onComponentTag(component, tag); addMaxLengthToTag(component, tag, getMaximum()); } }; }  static void addMaxLengthToTag(Component component, ComponentTag tag, int maxLength); static StringValidator exactLength(final int length); static StringValidator lengthBetween(int minimum, int maximum); static StringValidator maximumLength(int maximum); static final String MAX_LENGTH; }### Answer:
@Test public void testLengthBetween() { testValidator(StringValidatorWithMaxLength.lengthBetween(maxLength - 1, maxLength)); }