BusFactory.setDefaultBus(bus);
BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);
CorbaBindingFactory factory =
(CorbaBindingFactory)bfm.getBindingFactory("http://cxf.apache.org/bindings/corba");
OrbConfig orbConfig = (OrbConfig)factory.getOrbConfig();
assertTrue("CorbaBindingFactoryConfigurer is null", orbConfig != null);
Properties props = orbConfig.getOrbProperties();
assertTrue("probs is null", props != null);
assertTrue("prob1 is not equal to value1",
"value1".equals(props.get("prop1")));
assertTrue("prob2 is not equal to value2",
"value2".equals(props.get("prop2")));
assertTrue("ORBClass is not equal to MyORBImpl",
"com.orbimplco.MyORBImpl".equals(props.get("org.omg.CORBA.ORBClass")));
assertTrue("ORBSingletonClass is not equal to MyORBSingleton",
"com.orbimplco.MyORBSingleton".equals(props.get("org.omg.CORBA.ORBSingletonClass")));
List <String> orbArgs = orbConfig.getOrbArgs();
assertTrue("orbArgs is null", orbArgs != null);
String domainNameId = orbArgs.get(0);
assertTrue("domainNameId is not equal to -ORBdomain_name",
"-ORBdomain_name".equals(domainNameId));
String domainNameValue = orbArgs.get(1);