private void checkEnumValue(Value value, String expected)
{
assertNotNull(value);
assertTrue(EnumValue.class.isAssignableFrom(value.getClass()));
EnumValue theVal = (EnumValue)value;
TypeInfo info = theVal.getType();
assertNotNull(info);
assertEquals(TestEnum.class.getName(), info.getName());
String val = theVal.getValue();
assertNotNull(val);
assertEquals(expected, val);
}