SpringJAXRSClientFactoryBean cfb = ctx.getBean("rsClient1", SpringJAXRSClientFactoryBean.class);
assertEquals("Get a wrong address", cfb.getAddress(), "http://localhost:" + port + "/CxfRsClientFactoryBeanTest/router");
assertEquals("Get a wrong beanId", cfb.getBeanId(), "rsClient1");
assertEquals("Get a wrong password", cfb.getPassword(), "passwd");
assertEquals("Get a wrong user name", cfb.getUsername(), "username");
CustomerService customerService = cfb.create(CustomerService.class);
assertNotNull("The customer service should not be null", customerService);
assertEquals("Got the wrong schemalocations size", 1, cfb.getSchemaLocations().size());
assertEquals("Got the wrong schemalocation", "classpath:wsdl/Message.xsd", cfb.getSchemaLocations().get(0));
assertEquals("Got the wrong loggingFeatureEnabled", true, cfb.isLoggingFeatureEnabled());
assertEquals("Got the wrong loggingSizeLimit", 200, cfb.getLoggingSizeLimit());