@Test
public void test_addGroupToSafe_successfully_isAdmin() {

    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    String path = "shared/mysafe01";
    SafeGroup safeGroup = new SafeGroup(path, "group1", "write");
    UserDetails userDetails = getMockUser(true);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body("{\"messages\":[\"Group is successfully associated with Safe\"]}");
    ResponseEntity<String> response = ResponseEntity.status(HttpStatus.OK).body("{\"messages\":[\"Group is successfully associated with Safe\"]}");
    when(safesService.addGroupToSafe(token, safeGroup, userDetails)).thenReturn(response);
    ResponseEntity<String> responseEntity = selfSupportService.addGroupToSafe(userDetails, token, safeGroup);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}