OperationContextImpl context = helper.getContext();
ObservableConversation conversation =
context.openConversation(WAVE_ID, WAVELET_ID, ALEX).getRoot();
// Append the custom markup to the newly created blip.
ConversationBlip markupBlip = conversation.getRootThread().appendBlip();
OperationRequest operation = operationRequest(OperationType.DOCUMENT_APPEND_MARKUP,
markupBlip.getId(), Parameter.of(ParamsProperty.CONTENT, markup));
service.execute(operation, context, ALEX);
JsonRpcResponse response = context.getResponse(OPERATION_ID);
assertFalse("CustomMarkup generated error in service execution.", response.isError());
// The xml in new blip should match custom markup.
String actualContent = markupBlip.getContent().toXmlString();
assertTrue("Expected the new blip to contain the custom markup as specified in the " +
"operation. actualcontent: " + actualContent, actualContent.contains(markup));
}