public List<Unstructured> load() {
        List<Unstructured> unstructuredList = new ArrayList<>();
        process((properties, map) -> {
            Unstructured unstructured = JsonUtils.mapToObject(map, Unstructured.class);
            unstructuredList.add(unstructured);
        });
        return unstructuredList;
    }
@Test
    void loadTest() {
        Resource[] resources = yamlResources.toArray(Resource[]::new);
        YamlUnstructuredLoader yamlUnstructuredLoader = new YamlUnstructuredLoader(resources);
        List<Unstructured> unstructuredList = yamlUnstructuredLoader.load();
        assertThat(unstructuredList).isNotNull();
        assertThat(unstructuredList).hasSize(3);

        assertThat(JsonUtils.objectToJson(unstructuredList)).isEqualToIgnoringWhitespace("""
            [
                 {
                     "apiVersion": "v1alpha1",
                     "kind": "Fake",
                     "metadata": {
                         "name": "test1"
                     },
                     "hello": {
                         "world": "halo"
                     }
                 },
                 {
                     "apiVersion": "v1alpha1",
                     "kind": "Fake",
                     "metadata": {
                         "name": "test2"
                     },
                     "hello": {
                         "world": "haha"
                     }
                 },
                 {
                     "apiVersion": "v1alpha1",
                     "kind": "Fake",
                     "metadata": {
                         "name": "test2"
                     },
                     "hello": {
                         "world": "bang"
                     }
                 }
             ]
            """);
    }

    @Test
    void loadIgnore() {
        InMemoryResource resource = new InMemoryResource(notSpecYaml);
        YamlUnstructuredLoader yamlUnstructuredLoader = new YamlUnstructuredLoader(resource);
        List<Unstructured> unstructuredList = yamlUnstructuredLoader.load();
        assertThat(unstructuredList).isEmpty();
    }

}