CollectionParameterValue extends AbstractParameterValue { @Override public Object getValue() { return values.stream().map(ParameterValue::getValue).collect(Collectors.toList()); } CollectionParameterValue(List<ParameterValue> values); @Override Object getValue(); @Override String getQueryString();  }
@Test void getValueReturnsValuesOfIndividualElements() { final CollectionParameterValue sut = new CollectionParameterValue(Arrays.asList(V_ONE, V_TWO, V_THREE)); assertEquals(Arrays.asList(V_ONE.getValue(), V_TWO.getValue(), V_THREE.getValue()), sut.getValue()); }