@Test
public void test_getFoldersRecursively_admin() {

    String path = "shared/mysafe01";
    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    UserDetails userDetails = getMockUser(true);
    String responseJson = "{\"keys\":[\"mysafe01\"]}";
    ResponseEntity<String> response = ResponseEntity.status(HttpStatus.OK).body(responseJson);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseJson);
    when(safesService.getFoldersRecursively(token, path)).thenReturn(response);
    ResponseEntity<String> responseEntity = selfSupportService.getFoldersRecursively(userDetails, token, path);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}