public RemotingChannel removeProducerChannel(ProxyContext ctx, String group, Channel channel) {
        return removeChannel(buildProducerKey(group), channel);
    }
@Test
    public void testRemoveProducerChannel() {
        String group = "group";
        String clientId = RandomStringUtils.randomAlphabetic(10);

        {
            Channel producerChannel = createMockChannel();
            RemotingChannel producerRemotingChannel = this.remotingChannelManager.createProducerChannel(ctx, producerChannel, group, clientId);
            assertSame(producerRemotingChannel, this.remotingChannelManager.removeProducerChannel(ctx, group, producerRemotingChannel));
            assertTrue(this.remotingChannelManager.groupChannelMap.isEmpty());
        }
        {
            Channel producerChannel = createMockChannel();
            RemotingChannel producerRemotingChannel = this.remotingChannelManager.createProducerChannel(ctx, producerChannel, group, clientId);
            assertSame(producerRemotingChannel, this.remotingChannelManager.removeProducerChannel(ctx, group, producerChannel));
            assertTrue(this.remotingChannelManager.groupChannelMap.isEmpty());
        }
    }