public void testExtractCustomerNames() {
final ApplicationContext context
= new ClassPathXmlApplicationContext("/META-INF/spring/integration/spring-integration-context.xml",
CustomerServiceTest.class);
final CustomerService service = context.getBean(CustomerService.class);
final String sourceXml = "<customers><customer id=\"1\"><name>Foo Industries</name>"
+ "<industry>Chemical</industry><city>Glowing City</city></customer></customers>";
final String expectedResult = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<customers>\n"
+ " <name>Foo Industries</name>\n"
+ "</customers>\n";
final String extractedCustomerNames = service.getCustomerNames(sourceXml);
System.out.println(">>" + expectedResult + "<<");
System.out.println(">>" + extractedCustomerNames + "<<");
Assert.assertEquals("The expected list of customer names did not match.",