@Test
public void test_getAllSafeNames_failure() {

    UserDetails userDetails = getMockUser(false);
    HashMap<String, List<String>> safeNames = new HashMap<>();
    when(ControllerUtil.getAllExistingSafeNames(Mockito.any())).thenReturn(safeNames);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body("No safes are available");
    ResponseEntity<String> responseEntity = selfSupportService.getAllSafeNames(userDetails);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}