@PostMapping(path = "/admission")
    public WebhookResponse handleAdmissionReviewRequest(@RequestBody ObjectNode request) {
        LOGGER.debug("request is {}:", request.toString().replace(System.lineSeparator(), "_"));
        return handleAdmission(request);
    }
@Test
    public void injectSermant() throws IOException {
        JsonNode body = mapper.readTree(getClass().getClassLoader().getResourceAsStream("test.json"));
        WebhookResponse response = controller.handleAdmissionReviewRequest((ObjectNode) body);
        Assertions.assertNotNull(response);
        Assertions.assertNotNull(response.getResponse());
        Assertions.assertTrue(response.getResponse().isAllowed());

        // Test Annotations environment feature.
        byte[] decodedBytes = Base64.getDecoder().decode(response.getResponse().getPatch());
        String decodedString = new String(decodedBytes);
        JsonNode rs = mapper.readTree(decodedString);
        Iterator<JsonNode> iter = rs.elements();
        while ( iter.hasNext() )
        {
            JsonNode node = iter.next();
            if (node.get("path") != null && node.get("path").asText().equals("/spec/containers/0/env"))
            {
                JsonNode jn = node.findValue("value");
                Assertions.assertTrue(jn.toString().indexOf("key1") > 0);
                break;
            }
            if ( iter.hasNext() == false )
            {
                Assertions.fail("should not get here");
            }
        }
    }