assertEquals(collectionValue, error.getInvalidValue());
assertEquals(maximumLengthConstraint, error.getConstraint());
}
protected MutableCollectionValue createCollectionValue(final String[] values) {
MutableCollectionValue collectionValue = createEmptyValue();
final Collection contents =
collectionValue.getContentsAsMutableCollection();
for (int i = 0; i < values.length; i++) {
final MutableStringValue stringValue =
VALUE_FACTORY.createStringValue();
stringValue.setValue(values[i]);
contents.add(stringValue);