// Data object is read-only.
for (Object[] pair : pairs)
{
DataMap foo = new DataMap();
foo.put(key, pair[0]);
foo.makeReadOnly();
assertTrue(foo.isReadOnly());
assertTrue(((DataComplex) pair[0]).isReadOnly());
assertSame(foo.get(key), pair[0]);
ValidationResult result = ValidateDataAgainstSchema.validate(foo, schema, validationOptions);
System.out.println(result);