@ParameterizedTest
    @MethodSource("input")
    void testSnippetInjection(String snippet, String path, String sourceNodeFile, String expectedJsonFile)
            throws HyscaleException, IOException {
        ObjectNode objectNode = OBJECT_NODE;
        if (StringUtils.isNotBlank(sourceNodeFile)) {
            objectNode = (ObjectNode) objectMapper.readTree(new File(getFilePath(sourceNodeFile)));
        }
        try {
            JsonNode data = manifestTreeUtils.injectSnippet(snippet, path, objectNode);
            String expectedData = getData(expectedJsonFile);
            JSONAssert.assertEquals("Expected data doesn't match with actual data.", expectedData, data.toString(),
                    false);
        } catch (IOException | HyscaleException | JSONException e) {
            fail(e);
        }
    }
To test JsonNode injectSnippet(String snippet, String path, ObjectNode rootNode)
Cases to cover:
Null values
Injecting in array
Normal injecting
Injecting in empty json
manifest-generator/generator-services/src/test/java/io/hyscale/generator/services/utils/ManifestTreeUtilsTest.java