assertThat(mockOperation.getMethod(), is(restRequest.getMethod()));
assertTrue(mockOperation.getResourcePath().contains("/full/path"));
}
private RESTMockServiceConfig createRestMockServiceConfig() {
RESTMockServiceConfig config = RESTMockServiceConfig.Factory.newInstance();
config.setName("Da service");
RESTMockActionConfig mockActionConfig = config.addNewRestMockAction();
mockActionConfig.setName("Da action");
RESTMockResponseConfig mockResponseConfig = mockActionConfig.addNewResponse();
mockResponseConfig.setName("Da response");
CompressedStringConfig responseContent = CompressedStringConfig.Factory.newInstance();
responseContent.setStringValue("Some content");