} catch (SerializationException e) {
e.printStackTrace();
}
EnumBean enumBean = new EnumBean();
BeanAdapter ba = new BeanAdapter(enumBean);
ba.put("orientationField", Orientation.HORIZONTAL);
dumpField(enumBean, ba);
ba.put("orientationField", "vertical");
dumpField(enumBean, ba);
ba.put("orientation", Orientation.HORIZONTAL);
dumpSetter(enumBean, ba);
ba.put("orientation", Orientation.VERTICAL);
dumpSetter(enumBean, ba);
ba.put("orientation", null);
dumpSetter(enumBean, ba);
// Force an error to check the IllegalArgumentException message
// ba.put("orientation", Vote.APPROVE);
}