@PostMapping("/insertOrUpdate")
    public ShenyuAdminResult createOrUpdate(@Valid @RequestBody final MockRequestRecordDTO mockRequestRecordDTO) {
        return ShenyuAdminResult.success(ShenyuResultMessage.SUCCESS, mockRequestRecordService.createOrUpdate(mockRequestRecordDTO));
    }
@Test
    public void testCreateOrUpdate() throws Exception {
        given(mockRequestRecordService.createOrUpdate(any())).willReturn(1);
        this.mockMvc.perform(MockMvcRequestBuilders.post("/mock/insertOrUpdate")
                        .contentType(MediaType.APPLICATION_JSON)
                        .content(GsonUtils.getInstance().toJson(new MockRequestRecordDTO())))
                .andExpect(status().isOk())
                .andExpect(jsonPath("$.message", is(ShenyuResultMessage.SUCCESS)))
                .andReturn();
    }