@ParameterizedTest
    @MethodSource("exceptionInput")
    void testException(String snippet, String path, ObjectNode objectNode, HyscaleError error) {
        try {
            manifestTreeUtils.injectSnippet(snippet, path, objectNode);
        } catch (HyscaleException e) {
            if (e.getHyscaleError() == error) {
                return;
            }
            fail(e);
        } catch (IOException e) {
            fail(e);
        }
        fail("No exception thrown, expected exception: " + error.getMessage());
    }
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