assertEquals(0, errors.size());
// invalid magnitude type
magnitudeValue.setValue(new Byte((byte) 42));
quantityValue.setMagnitudeValue(magnitudeValue);
errors = quantityType.verify(quantityValue);
assertEquals(1, errors.size());
VerificationError error = (VerificationError) errors.iterator().next();
assertEquals(VerificationError.TYPE_CONSTRAINT_VIOLATION,
error.getType());
assertEquals("[@magnitude]", error.getLocation());