### Question:
MqResource implements IMqResource { public GetTopicQueueIdsResponse getTopicQueueIds(GetTopicQueueIdsRequest request) { if (request == null) { return null; } String url = MqConstanst.METAPRE + "/getTopicQueueIds"; try { return post(request, url, 2, GetTopicQueueIdsResponse.class, false); } catch (Exception e) { CatRequest request2 = new CatRequest(); request2.setMethod("getTopicQueueIds"); request2.setJson(JsonUtil.toJson(request)); request2.setMsg(e.getMessage()); addCat(request2); throw e; } } MqResource(String url, long connectionTimeOut, long readTimeOut);  MqResource(IHttpClient httpClient, String url); void setUrls(List<String> urlsTempG1, List<String> urlsTempG2); long register(ConsumerRegisterRequest request); void publishAndUpdateResultFailMsg(FailMsgPublishAndUpdateResultRequest request); void deRegister(ConsumerDeRegisterRequest request); GetMetaGroupResponse getMetaGroup(GetMetaGroupRequest request); GetTopicResponse getTopic(GetTopicRequest request); GetGroupTopicResponse getGroupTopic(GetGroupTopicRequest request); void addCat(CatRequest request); boolean publish(PublishMessageRequest request); boolean publish(PublishMessageRequest request, int retryTimes); void commitOffset(CommitOffsetRequest request); ConsumerGroupRegisterResponse registerConsumerGroup(ConsumerGroupRegisterRequest request); void heartbeat(HeartbeatRequest request); GetConsumerGroupResponse getConsumerGroup(GetConsumerGroupRequest request); GetMessageCountResponse getMessageCount(GetMessageCountRequest request); PullDataResponse pullData(PullDataRequest request); GetTopicQueueIdsResponse getTopicQueueIds(GetTopicQueueIdsRequest request); void addLog(LogRequest request); void addOpLog(OpLogRequest request); void sendMail(SendMailRequest request); @Override String getBrokerIp();  }### Answer:
@Test public void getTopicQueueIdsNullTest() { IHttpClient httpClient = mock(IHttpClient.class); MqResource mqResource = new MqResource(httpClient, "http: assertEquals("getTopicQueueIdsNullTest error", null, mqResource.getTopicQueueIds(null)); }