InvocationProxy proxy = new ComponentInvocationProxy(service, service.getRuntimeWire(null), javaClass);
DynaCorbaServant servant = new DynaCorbaServant(proxy, Utils.getTypeId(javaClass));
String[] ids = {"IDL:org/apache/tuscany/sca/binding/corba/testing/enums/EnumManager:1.0"};
servant.setIds(ids);
bindServant(servant, "Enum");
EnumManager em = EnumManagerHelper.narrow(bindReference("Enum"));
Color color = Color.red;
assertTrue(em.getColor(color).value() == color.value());
} catch (Exception e) {
e.printStackTrace();
fail();
}
}