@Test
	public void test() {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				"org/springframework/xd/integration/hadoop/config/HdfsOutboundChannelAdapterParserTests.xml");
		EventDrivenConsumer adapter = context.getBean("adapter", EventDrivenConsumer.class);
		HdfsStoreMessageHandler handler = (HdfsStoreMessageHandler) new DirectFieldAccessor(adapter).getPropertyValue("handler");
		DirectFieldAccessor handlerAccessor = new DirectFieldAccessor(handler);
		assertEquals(false, handlerAccessor.getPropertyValue("autoStartup"));

		TextFileWriter storeWriter = (TextFileWriter) handlerAccessor.getPropertyValue("storeWriter");
		assertNotNull(storeWriter);

		Configuration configuration = (Configuration) new DirectFieldAccessor(storeWriter).getPropertyValue("configuration");
		assertEquals(context.getBean("hadoopConfiguration"), configuration);

		context.close();
	}
@author Mark Fisher
@author Janne Valkealahti
spring-xd-hadoop/src/test/java/org/springframework/xd/integration/hadoop/config/HdfsOutboundChannelAdapterParserTests.java