expect(pipeline.execute(eqRequest(httpRequest))).andReturn(builder.create()).anyTimes();
replay();
RpcHandler operation = registry.getRpcHandler(request);
HttpRequestHandler.HttpApiResponse httpApiResponse =
(HttpRequestHandler.HttpApiResponse)operation.execute(emptyFormItems, token, converter).get();
verify();
JsonAssert.assertJsonEquals(converter.convertToString(httpApiResponse),
"{ headers : {}, status : 200, content : 'CONTENT', token : updated }}");