public ResourceConfigs toResourceConfigs() {
        final ResourceConfigs resourceConfigs = new ResourceConfigs();
        for (Resource resource : this) {
            resourceConfigs.add(new ResourceConfig(resource.getName()));
        }
        return resourceConfigs;
    }
@Test
    void shouldConvertResourceListToResourceConfigs() {
        final Resources resources = new Resources(new Resource("foo"), new Resource("bar"));

        final ResourceConfigs resourceConfigs = resources.toResourceConfigs();

        assertThat(resourceConfigs.size()).isEqualTo(2);
        assertThat(resourceConfigs.get(0)).isEqualTo(new ResourceConfig("foo"));
        assertThat(resourceConfigs.get(1)).isEqualTo(new ResourceConfig("bar"));
    }