@Override
    public String toString() {
        return "ResourceConfig{" +
                "url=" + url +
                ", id='" + id + '\'' +
                ", resourceType=" + resourceType +
                '}';
    }
@Test
    public void when_attachDuplicateDirectoryWithPath_then_throwsException() {
        // Given
        String path1 = createDirectory("path/to/dir").toString();
        String path2 = createDirectory("path/to/another/dir").toString();
        config.attachDirectory(path1);

        // When
        assertThrows(IllegalArgumentException.class, () -> config.attachDirectory(path2));
    }