@Test
public void testBatch() throws Exception {

    BatchModel<Position> batchModel = new BatchModel<>();
    batchModel.setDelete(new String[]{"1","2"});
    String content = objectMapper.writeValueAsString(batchModel);
    String result = mockMvc.perform(post("/sys/position/batch")
            .header(HttpHeaders.AUTHORIZATION, String.join(" ", accessToken.getTokenType(), accessToken.getValue()))
            .content(content) // @RequestBody 解析
            .contentType(MediaType.APPLICATION_JSON_UTF8) // @RequestBody 解
              .param("xxx", "xxx")// @RequestParam 解析
              .contentType(MediaType.APPLICATION_FORM_URLENCODED) // @RequestParam 解析
            .accept(MediaType.APPLICATION_JSON_UTF8)) // 响应类型
            .andExpect(status().isOk())
            .andExpect(jsonPath("$.data.id").isNotEmpty())
            .andReturn().getResponse().getContentAsString();
    log.info("{}",result);
}