JDOMWriter writer = new JDOMWriter(root);
type.writeObject(new EnumBean(), writer, new Context());
JDOMReader reader = new JDOMReader(root);
Object value = type.readObject(reader, new Context());
assertTrue(value instanceof EnumBean);
EnumBean bean = (EnumBean)value;
assertNull(bean.getCurrency());
}