### Question:
ConsumerGroupVo { public boolean addTopic(ConsumerGroupTopicVo topicVo) { if (topics == null) { topics = new ConcurrentHashMap<>(); } if (topicVo == null || Util.isEmpty(topicVo.getName())) { throw new IllegalArgumentException("参数不对,consumerGroupName,topicName不能为空！"); } if (topics.containsKey(topicVo.getName())) { return false; } else { topics.put(topicVo.getName(), topicVo); return true; } } ConsumerGroupVo();  ConsumerGroupVo(String consumerGroupName, ConsumerGroupTopicVo topicVo);  ConsumerGroupVo(String consumerGroupName); void setGroupName(String name); boolean addTopic(ConsumerGroupTopicVo topicVo); ConsumerGroupMetaVo getMeta(); Map<String, ConsumerGroupTopicVo> getTopics(); void setTopics(Map<String, ConsumerGroupTopicVo> topics);  }### Answer:
@Test public void addTopicTest() { ConsumerGroupVo consumerGroupVo = new ConsumerGroupVo("tttt"); boolean rs = false; try { consumerGroupVo.addTopic(null); } catch (Exception e) { rs = true; } assertEquals("addTopicTest error", true, rs); rs = false; try { consumerGroupVo.addTopic(new ConsumerGroupTopicVo(null, null)); } catch (Exception e) { rs = true; } assertEquals("addTopicTest error", true, rs); rs = false; rs = consumerGroupVo.addTopic(new ConsumerGroupTopicVo("test", null)); assertEquals("addTopicTest error", true, rs); rs = consumerGroupVo.addTopic(new ConsumerGroupTopicVo("test", null)); assertEquals("addTopicTest error", false, rs); }