ParameterValue { public String single() { return values.get(0); } ParameterValue(String value);  ParameterValue(String... values); String single(); String[] multi(); void add(String value); boolean isMulti(); static final ParameterValue NULL; }
@Test public void singleGivesConstructedParameterByDefault() throws Exception { ParameterValue value = new ParameterValue("foo"); assertEquals(value.single(), "foo"); }
@Test public void singleGivesFirstValueOfMultiValue() throws Exception { ParameterValue value = new ParameterValue("foo", "blah"); assertEquals(value.single(), "foo"); }