final VolantisProtocol protocol = getProtocol();
MethodInvoker invoker = new MethodInvoker() {
public void invoke() throws Exception {
protocol.writeOpenSpan(attributes);
protocol.writeCloseSpan(attributes);
}
};
String expecting = getExpectedWriteOpenSpanResult();
ProtocolIntegrationTestHelper.doTest(expectations, protocol, invoker, expecting);
}