@Test
public void test_getSafe_successfully() {

    String path = "shared/mysafe01";
    String _path = "metadata/"+path;
    String token = "5PDrOhsy4ig8L3EpsJZSLAMg";
    String responseJson = "{  \"keys\": [ \"mysafe01\" ]}";
    Response response = getMockResponse(HttpStatus.OK, true, responseJson);
    ResponseEntity<String> responseEntityExpected = ResponseEntity.status(HttpStatus.OK).body(responseJson);
    when(ControllerUtil.isValidSafePath(path)).thenReturn(true);
    when(ControllerUtil.getSafeName(path)).thenReturn("mysafe01");
    when(reqProcessor.process("/sdb/list","{\"path\":\""+path+"\"}",token)).thenReturn(response);
    when(reqProcessor.process("/sdb","{\"path\":\""+_path+"\"}",token)).thenReturn(response);
    ResponseEntity<String> responseEntity = safesService.getSafe(token, path);
    assertEquals(HttpStatus.OK, responseEntity.getStatusCode());
    assertEquals(responseEntityExpected, responseEntity);
}