@Test
public void testQuery() throws Exception {

    int page = 1;
    int size = 10;
    Job job = new Job();
    String content = objectMapper.writeValueAsString(job);
    String result = mockMvc.perform(get("/monitor/job/"+ page + "/" + size)
            .header(HttpHeaders.AUTHORIZATION, String.join(" ", accessToken.getTokenType(), accessToken.getValue()))
            .content(content)
            .contentType(MediaType.APPLICATION_JSON_UTF8) // 请求类型
            .accept(MediaType.APPLICATION_JSON_UTF8)) // 响应类型
            .andExpect(status().isOk())
            .andExpect(jsonPath("$.data.total").isNumber())
            .andReturn().getResponse().getContentAsString();
    log.info(result);
}