@Test
@WithMockUser(username = TEST_USER, authorities = DELETE_PERM)
public void testDelete() throws Exception {

    String id = "{}";
    mockMvc.perform(delete("/sys/notice/" + id)
            .contentType(MediaType.APPLICATION_JSON_UTF8) // 请求类型
            .accept(MediaType.APPLICATION_JSON_UTF8)) // 响应类型
            .andExpect(status().isOk());
}