### Question:
QueueService extends BaseService { public Map<String, Object> createQueue(User loginUser, String queue, String queueName) { Map<String, Object> result = new HashMap<>(); if (checkAdmin(loginUser, result)) { return result; } if (StringUtils.isEmpty(queue)) { putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR, "queue"); return result; } if (StringUtils.isEmpty(queueName)) { putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR, "queueName"); return result; } if (checkQueueNameExist(queueName)) { putMsg(result, Status.QUEUE_NAME_EXIST, queueName); return result; } if (checkQueueExist(queue)) { putMsg(result, Status.QUEUE_VALUE_EXIST, queue); return result; } Queue queueObj = new Queue(); Date now = new Date(); queueObj.setQueue(queue); queueObj.setQueueName(queueName); queueObj.setCreateTime(now); queueObj.setUpdateTime(now); queueMapper.insert(queueObj); putMsg(result, Status.SUCCESS); return result; }  Map<String, Object> queryList(User loginUser); Map<String, Object> queryList(User loginUser, String searchVal, Integer pageNo, Integer pageSize); Map<String, Object> createQueue(User loginUser, String queue, String queueName); Map<String, Object> updateQueue(User loginUser, int id, String queue, String queueName); Result verifyQueue(String queue, String queueName);  }### Answer:
@Test public void testCreateQueue(){ Map<String, Object> result = queueService.createQueue(getLoginUser(),null,queueName); logger.info(result.toString()); Assert.assertEquals(Status.REQUEST_PARAMS_NOT_VALID_ERROR,result.get(Constants.STATUS)); result = queueService.createQueue(getLoginUser(),queueName,null); logger.info(result.toString()); Assert.assertEquals(Status.REQUEST_PARAMS_NOT_VALID_ERROR,result.get(Constants.STATUS)); result = queueService.createQueue(getLoginUser(),queueName,queueName); logger.info(result.toString()); Assert.assertEquals(Status.SUCCESS,result.get(Constants.STATUS)); }