@Test
public void generateProject() throws Exception {

    String requestJson = JSONObject.toJSONString(GenerateCodeModel.builder().projectId(1L).build());
    mockMvc.perform(MockMvcRequestBuilders.get("/code/generate")
            .contentType(MediaType.APPLICATION_JSON_UTF8)
            .content(requestJson)
            .accept(MediaType.APPLICATION_JSON_UTF8))
            .andExpect(MockMvcResultMatchers.status().isOk())
            .andDo(MockMvcResultHandlers.print());
}