@Signature
    @PostMapping("/orders")
    public String saveOrder(@RequestBody Order order){
        return "success";
    }
@Test
    void saveOrder() throws Exception {
        Order order = new Order();
        order.setAmount(1);
        order.setName("iphone");
        order.setPrice(4000d);

        SignatureVo signatureVo = new SignatureVo();
        signatureVo.setPath("/orders");
        signatureVo.setContentType(MediaType.APPLICATION_JSON_VALUE);
        signatureVo.setHttpMethod("POST");

        String body = JacksonUtil.serialize(order);
        System.out.println(body);
        System.out.println(SignatureUtils.buildContentMd5(body));
        signatureVo.setContentMD5(SignatureUtils.buildContentMd5(body));

        MvcResult mvcResult = mockMvc.perform(MockMvcRequestBuilders.post("/orders")
                .headers(getHeaders(signatureVo)).content(JacksonUtil.serialize(order)))
                .andExpect(MockMvcResultMatchers.status().isOk())
                .andDo(MockMvcResultHandlers.print())
                .andReturn();
        System.out.println("输出 " + mvcResult.getResponse().getContentAsString());
    }