### Question:
ConsumerGroupConsumerServiceImpl extends AbstractBaseService<ConsumerGroupConsumerEntity> implements ConsumerGroupConsumerService { @Override public void deleteByConsumerId(long consumerId) { consumerGroupConsumerRepository.deleteByConsumerId(consumerId); }  @Override List<ConsumerGroupConsumerEntity> getByConsumerGroupIds(List<Long> consumerGroupIds); @Override int deleteUnActiveConsumer(); @Override List<ConsumerGroupConsumerEntity> getByConsumerIds(List<Long> consumerIds); @Override void deleteByConsumerId(long consumerId); @Override void deleteByConsumerIds(List<Long> consumerIds);  }### Answer:
@Test public void deleteByConsumerIdTest() { doNothing().when(consumerGroupConsumerRepository).deleteByConsumerId(anyLong()); consumerGroupConsumerServiceImpl.deleteByConsumerId(1L); verify(consumerGroupConsumerRepository).deleteByConsumerId(anyLong()); }