RequestParameter extends Parameter<String> { @Override public String toString() { return validate(); } RequestParameter(String name, String value); boolean isBlank(); @Override boolean isEmpty(); @Override RequestParameter validateWith(ValidationStrategy<String> validationStrategy); @Override String toString(); String toString(String defaultValue); Double toDouble(); Double toDouble(double defaultValue); Long toLong(); Long toLong(long defaultValue); Integer toInteger(); Integer toInteger(int defaultValue); boolean toBoolean(); boolean toBoolean(boolean defaultValue); E toEnum(Class<E> type); E toEnum(Class<E> type, E defaultValue);  }
@Test public void testToStringWithValidValues() throws Exception { assertEquals("foo", new RequestParameter(null, "foo").toString()); }