### Question:
Result { public static <T> Result<T> success(T data) { return new Result<>(data); } Result();  Result(Integer code, String msg); private  Result(T data); private  Result(Status status); static Result<T> success(T data); static Result error(Status status); static Result errorWithArgs(Status status, Object... args); Integer getCode(); void setCode(Integer code); String getMsg(); void setMsg(String msg); T getData(); void setData(T data); @Override String toString();  }### Answer:
@Test public void success() { HashMap<String, String> map = new HashMap<>(); map.put("testdata", "test"); Result ret = Result.success(map); Assert.assertEquals(Status.SUCCESS.getCode(), ret.getCode().intValue()); }