### Question:
Result { public static Result errorWithArgs(Status status, Object... args) { return new Result(status.getCode(), MessageFormat.format(status.getMsg(), args)); } 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 errorWithArgs() { Result ret = Result.errorWithArgs(Status.INTERNAL_SERVER_ERROR_ARGS, "test internal server error"); Assert.assertEquals(Status.INTERNAL_SERVER_ERROR_ARGS.getCode(), ret.getCode().intValue()); }