public static Result<Void> failure() {
        return failure(ErrorCodeEnum.SERVICE_ERROR.getCode(), ErrorCodeEnum.SERVICE_ERROR.getMessage());
    }
@Test
    public void testFailure() {
        String code = "500";
        String msg = "message";
        AbstractException abstractException = new AbstractException(msg, new Throwable(), new ErrorCode() {

            @Override
            public String getCode() {
                return code;
            }

            @Override
            public String getMessage() {
                return "errorMsg";
            }
        });
        Assert.isTrue(code.equals(Results.failure(abstractException).getCode()));
        Assert.isTrue(msg.equals(Results.failure(abstractException).getMessage()));
    }