@Test
public void test_deleteSafe_successfully() {

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