@Test
public void testDoWithStaxResultStreamWriter() throws Exception {

	XMLOutputFactory outputFactory = XMLOutputFactory.newInstance();
	XMLStreamWriter streamWriter = outputFactory.createXMLStreamWriter(new StringWriter());
	TraxUtils.ResultCallback mock = createMock(TraxUtils.ResultCallback.class);
	mock.staxResult(streamWriter);
	replay(mock);
	TraxUtils.doWithResult(StaxUtils.createStaxResult(streamWriter), mock);
	verify(mock);
}