### Question:
DeFiClientManageProcessor implements NettyRequestProcessor { @Override public RemotingCommand processRequest(ChannelHandlerContext ctx, RemotingCommand request) throws Exception { switch (request.getCode()) { case DeFiBusRequestCode.GET_CONSUMER_LIST_BY_GROUP_AND_TOPIC: return getConsumerListByGroupAndTopic(ctx, request); default: break; } return null; } DeFiClientManageProcessor(DeFiBrokerController deFiBrokerController); @Override RemotingCommand processRequest(ChannelHandlerContext ctx, RemotingCommand request); @Override boolean rejectRequest();  }### Answer:
@Test public void processRequest_GetConsumerListByGroupAndTopic() throws Exception { ConsumerGroupInfo consumerGroupInfo = deFiBrokerController.getConsumerManager().getConsumerGroupInfo(group); assertThat(consumerGroupInfo).isNotNull(); RemotingCommand request = GetConsumerListCommand(); RemotingCommand response = deFiClientManageProcessor.processRequest(handlerContext, request); assertThat(response).isNotNull(); assertThat(response.getCode()).isEqualTo(ResponseCode.SUCCESS); GetConsumerListByGroupResponseBody body = RemotingSerializable.decode(response.getBody(), GetConsumerListByGroupResponseBody.class); List<String> clientIdList = body.getConsumerIdList(); assertThat(clientIdList).isNotNull(); assertThat(clientIdList.get(0)).isEqualTo(clientId); }
@Test public void processRequest_GetConsumerListByGroupAndTopicIsNull() throws Exception { ConsumerGroupInfo consumerGroupInfo = deFiBrokerController.getConsumerManager().getConsumerGroupInfo(group); assertThat(consumerGroupInfo).isNotNull(); RemotingCommand request = GetConsumerListCommandWithNoTopic(); RemotingCommand response = response = deFiClientManageProcessor.processRequest(handlerContext, request); assertThat(response).isNotNull(); assertThat(response.getCode()).isEqualTo(ResponseCode.SUCCESS); GetConsumerListByGroupResponseBody body = RemotingSerializable.decode(response.getBody(), GetConsumerListByGroupResponseBody.class); List<String> clientIdList = body.getConsumerIdList(); assertThat(clientIdList).isNotNull(); assertThat(clientIdList.get(0)).isEqualTo(clientId); }