@Override
    public String toString() {
        return "ResourceConfig{" +
                "url=" + url +
                ", id='" + id + '\'' +
                ", resourceType=" + resourceType +
                '}';
    }
@Test
    public void when_addDuplicateJarWithPath_then_throwsException() throws Exception {
        // Given
        String resourceId = "jarfile";
        String path1 = createFile("path/to/" + resourceId).toString();
        String path2 = createFile("path/to/another/" + resourceId).toString();
        config.addJar(path1);

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