public static void bindEnvironment(ScriptEngine engine, String requestContent, Map<String, Object> requestContext,
         StateStore stateStore) {
      // Build a map of header values.
      bindEnvironment(engine, requestContent, requestContext, stateStore, null);
   }
@Test
   void testRequestContentIsBound() {
      String script = """
            return mockRequest.requestContent;
            """;

      ScriptEngineManager sem = new ScriptEngineManager();
      String body = "content";

      try {
         // Evaluating request with script coming from operation dispatcher rules.
         ScriptEngine se = sem.getEngineByExtension("groovy");
         ScriptEngineBinder.bindEnvironment(se, body, null, null);
         String result = (String) se.eval(script);

         assertEquals(body, result);
      } catch (Exception e) {
         fail("Exception should no be thrown");
      }
   }