operationService = DoNothingService.create();
}
public void testReturnsEmptyResponse() throws Exception {
// Type of operation doesn't matter in this case
OperationRequest request = new OperationRequest("wavelet.fetch", "op1");
WaveletProvider waveletProvider = mock(WaveletProvider.class);
EventDataConverter converter = mock(EventDataConverter.class);
ConversationUtil conversationUtil = mock(ConversationUtil.class);
OperationContextImpl context =
new OperationContextImpl(waveletProvider, converter, conversationUtil);
operationService.execute(request, context, BOB);
JsonRpcResponse response = context.getResponse(request.getId());
assertFalse("Expected non error response", response.isError());
assertTrue("Empty Response must be set", response.getData().isEmpty());
}