### Question:
CheckUtils { public static Map<String, Object> checkDesc(String desc) { Map<String, Object> result = new HashMap<>(); if (StringUtils.isNotEmpty(desc) && desc.length() > 200) { result.put(Constants.STATUS, Status.REQUEST_PARAMS_NOT_VALID_ERROR); result.put(Constants.MSG, MessageFormat.format(Status.REQUEST_PARAMS_NOT_VALID_ERROR.getMsg(), "desc length")); }else{ result.put(Constants.STATUS, Status.SUCCESS); } return result; } private  CheckUtils(); static boolean checkUserName(String userName); static boolean checkEmail(String email); static Map<String, Object> checkDesc(String desc); static boolean checkOtherParams(String otherParams); static boolean checkPassword(String password); static boolean checkPhone(String phone); static boolean checkTaskNodeParameters(String parameter, String taskType); static boolean checkUserParams(String userName, String password, String email, String phone);  }### Answer:
@Test public void testCheckDesc() { Map<String, Object> objectMap = CheckUtils.checkDesc("I am desc"); Status status = (Status) objectMap.get(Constants.STATUS); assertEquals(status.getCode(),Status.SUCCESS.getCode()); }