@Test
public void validateSQL() throws Exception {

    String requestJson = JSONObject.toJSONString(SqlValidateRequest.builder().sql_content("select * from project").build());
    mockMvc.perform(MockMvcRequestBuilders.post("/db/sqlValidate")
            .contentType(MediaType.APPLICATION_JSON_UTF8)
            .content(requestJson)
            .accept(MediaType.APPLICATION_JSON_UTF8))
            .andExpect(MockMvcResultMatchers.status().isOk())
            .andDo(MockMvcResultHandlers.print());
}