public static boolean areOperationsEquivalent(String operationNameRef, String operationNameCandidate) {
      // First check equals ignoring case.
      if (operationNameRef.equalsIgnoreCase(operationNameCandidate)) {
         return true;
      }
      // Then we may have an OpenAPI template we should convert to Postman and check again.
      if (operationNameRef.contains("/{")) {
         String transformedName = operationNameRef.replaceAll("/\\{", "/:").replace("}", "");
         if (transformedName.equalsIgnoreCase(operationNameCandidate)) {
            return true;
         }
      }

      try {
         // Finally check again adding a verb as prefix.
         return operationNameCandidate.matches(OPERATION_NAME_EXPRESSION_PREFIX + operationNameRef);
      } catch (PatternSyntaxException pse) {
         log.warn("{}{} throws a PatternSyntaxException", OPERATION_NAME_EXPRESSION_PREFIX, operationNameRef);
      }
      return false;
   }
@Test
   void testAreOperationsEquivalent() {
      assertTrue(PostmanUtil.areOperationsEquivalent("GET /PaStRiEs", "get /pastries"));
      assertTrue(PostmanUtil.areOperationsEquivalent("GET /PaStRiEs/{name}", "get /pastries/:name"));
      assertTrue(PostmanUtil.areOperationsEquivalent("recommendation", "POST recommendation"));
   }