TypeBinding typeBinding = elementBinding.getType();
ValueAdapter valueAdapter = typeBinding.getValueAdapter();
assertNotNull(valueAdapter);
assertTrue(valueAdapter instanceof EnumValueAdapter);
EnumValueAdapter enumValueAdapter = (EnumValueAdapter) valueAdapter;
HashMap<Object, Object> expected = new HashMap<Object, Object>();
expected.put(new Integer(1), Root.ONE);
expected.put(new Integer(2), Root.TWO);
expected.put(new Integer(3), Root.THREE);
Map<Object, Object> actual = enumValueAdapter.getMapping();
assertEquals(expected, actual);
}