private MockOperation findMatchedOperation(String pathToFind, HttpMethod verbToFind, boolean includePartialMatch) {
MockOperation bestMatchedOperation = null;
for (MockOperation operation : getMockOperationList()) {
String operationPath = ((RestMockAction) operation).getResourcePath();
HttpMethod operationVerb = ((RestMockAction) operation).getMethod();
boolean matchesPath = operationPath.equals(pathToFind);
boolean matchesVerb = verbToFind == operationVerb;
boolean matchesPathPartially = pathToFind.startsWith(operationPath);