@Test
public void testDoWithStaxResultEventWriter() throws Exception {

	XMLOutputFactory outputFactory = XMLOutputFactory.newInstance();
	XMLEventWriter eventWriter = outputFactory.createXMLEventWriter(new StringWriter());
	TraxUtils.ResultCallback mock = createMock(TraxUtils.ResultCallback.class);
	mock.staxResult(eventWriter);
	replay(mock);
	TraxUtils.doWithResult(StaxUtils.createStaxResult(eventWriter), mock);
	verify(mock);
}