@Test
public void test_isAuthorized() throws Exception {

    String responseJson = "true";
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(String.valueOf(true));
    UserDetails userDetails = getMockUser(false);
    when(selfSupportService.isAuthorized(userDetails, "users/mysafe01")).thenReturn(responseEntityExpected);
    mockMvc.perform(MockMvcRequestBuilders.get("/auth/tvault/isauthorized?path=users/mysafe01").requestAttr("UserDetails", userDetails)
            .header("vault-token", "5PDrOhsy4ig8L3EpsJZSLAMg")
            .header("Content-Type", "application/json;charset=UTF-8"))
            .andExpect(status().isOk())
            .andExpect(content().string(containsString(responseJson)));
}