}
@Test
public void stringType()
{
QueryParameter nameParam = getParameter("name");
assertThat(nameParam.getDisplayName(), is("name name"));
assertThat(nameParam.getDescription(), is("name description"));
assertThat(nameParam.getType(), is(STRING));
assertThat(nameParam.getEnumeration().size(), is(3));
assertThat(nameParam.getEnumeration().get(0), is("one"));
assertThat(nameParam.getEnumeration().get(1), is("two"));
assertThat(nameParam.getEnumeration().get(2), is("three"));
assertThat(nameParam.getPattern(), is("[a-z]{3,5}"));
assertThat(nameParam.getMinLength(), is(3));
assertThat(nameParam.getMaxLength(), is(5));
assertThat(nameParam.getExample(), is("two"));
assertThat(nameParam.isRepeat(), is(false));
assertThat(nameParam.isRequired(), is(false));
assertThat(nameParam.getDefaultValue(), is("three"));
assertThat(nameParam.validate("one"), is(true));
assertThat(nameParam.validate("two"), is(true));
assertThat(nameParam.validate("three"), is(true));
assertThat(nameParam.validate("four"), is(false));
}