protected void run() {
SpringBusFactory bf = new SpringBusFactory();
Bus bus = bf.createBus("org/apache/cxf/systest/ws/policy/rmwsdl_server.xml");
BusFactory.setDefaultBus(bus);
ServerRegistry sr = bus.getExtension(ServerRegistry.class);
PolicyEngine pe = bus.getExtension(PolicyEngine.class);
List<PolicyAssertion> assertions1
= getAssertions(pe, sr.getServers().get(0));
assertEquals("2 assertions should be available", 2, assertions1.size());
List<PolicyAssertion> assertions2 =
getAssertions(pe, sr.getServers().get(1));
assertEquals("1 assertion should be available", 1, assertions2.size());
LOG.info("Published greeter endpoints.");
}