@Test
public void testStreamWriter() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:stream-result");
mock.setExpectedMessageCount(1);
SplunkEvent splunkEvent = new SplunkEvent();
splunkEvent.addPair("key11", "value1");
splunkEvent.addPair("key22", "value2");
splunkEvent.addPair("key33", "value3");
template.sendBody("direct:stream", splunkEvent);
assertMockEndpointsSatisfied();
Producer streamProducer = streamEndpoint.createProducer();
assertIsInstanceOf(StreamDataWriter.class, ((SplunkProducer) streamProducer).getDataWriter());
}