@Deprecated
    public synchronized <K, V> Topology addGlobalStore(final StoreBuilder<?> storeBuilder,
                                                       final String sourceName,
                                                       final Deserializer<K> keyDeserializer,
                                                       final Deserializer<V> valueDeserializer,
                                                       final String topic,
                                                       final String processorName,
                                                       final org.apache.kafka.streams.processor.ProcessorSupplier<K, V> stateUpdateSupplier) {
        internalTopologyBuilder.addGlobalStore(
            new StoreBuilderWrapper(storeBuilder),
            sourceName,
            null,
            keyDeserializer,
            valueDeserializer,
            topic,
            processorName,
            () -> ProcessorAdapter.adapt(stateUpdateSupplier.get()),
            true
        );
        return this;
    }
@Deprecated // testing old PAPI
    @Test
    public void shouldNotAllowToAddGlobalStoreWithSourceNameEqualsProcessorName() {
        when(globalStoreBuilder.name()).thenReturn("anyName");
        assertThrows(TopologyException.class, () -> topology.addGlobalStore(
            globalStoreBuilder,
            "sameName",
            null,
            null,
            "anyTopicName",
            "sameName",
            new MockProcessorSupplier<>()));
    }