@Override
    public void remove(String objectName) {
        writeLock.lock();
        try {
            indexKeyObjectNamesMap.values().removeIf(objectName::equals);
        } finally {
            writeLock.unlock();
        }
    }
@Test
    void remove() {
        var spec =
            PrimaryKeySpecUtils.primaryKeyIndexSpec(IndexEntryContainerTest.FakeExtension.class);
        var descriptor = new IndexDescriptor(spec);
        var entry = new IndexEntryImpl(descriptor);
        entry.addEntry(List.of("slug-1"), "fake-name-1");
        assertThat(entry.indexedKeys()).containsExactly("slug-1");
        assertThat(entry.entries()).hasSize(1);

        entry.removeEntry("slug-1", "fake-name-1");
        assertThat(entry.indexedKeys()).isEmpty();
        assertThat(entry.entries()).isEmpty();
    }