@Test
public void test_deletesecretId() throws Exception {

    AppRoleNameSecretId appRoleNameSecretId = new AppRoleNameSecretId("approle1", "5973a6de-38c1-0402-46a3-6d76e38b773c");
    String inputJson =new ObjectMapper().writeValueAsString(appRoleNameSecretId);
    String responseMessage = "{\"messages\":[\"Secret ID created for AppRole\"]}";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseMessage);
    when(appRoleService.deleteSecretId(eq("5PDrOhsy4ig8L3EpsJZSLAMg"), Mockito.any())).thenReturn(responseEntityExpected);
    mockMvc.perform(MockMvcRequestBuilders.delete("/v2/auth/approle/role/secret_id")
            .header("vault-token", "5PDrOhsy4ig8L3EpsJZSLAMg")
            .header("Content-Type", "application/json;charset=UTF-8")
            .content(inputJson))
            .andExpect(status().isOk())
            .andExpect(content().string(containsString(responseMessage)));
}