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

        {
            Channel consumerChannel = createMockChannel();
            RemotingChannel consumerRemotingChannel = this.remotingChannelManager.createConsumerChannel(ctx, consumerChannel, group, clientId, new HashSet<>());
            assertSame(consumerRemotingChannel, this.remotingChannelManager.removeConsumerChannel(ctx, group, consumerRemotingChannel));
            assertTrue(this.remotingChannelManager.groupChannelMap.isEmpty());
        }
        {
            Channel consumerChannel = createMockChannel();
            RemotingChannel consumerRemotingChannel = this.remotingChannelManager.createConsumerChannel(ctx, consumerChannel, group, clientId, new HashSet<>());
            assertSame(consumerRemotingChannel, this.remotingChannelManager.removeConsumerChannel(ctx, group, consumerChannel));
            assertTrue(this.remotingChannelManager.groupChannelMap.isEmpty());
        }
    }