@Test
public void test_getCountOfSafesForGivenSafeName()  {

    String token = "7QPMPIGiyDFlJkrK3jFykUqa";
    Response response = getMockResponse(HttpStatus.OK, true, "{\"keys\":[\"safe01\", \"safe02\"]}");
    Response responseEmpty = getMockResponse(HttpStatus.OK, true, "{\"keys\":[]}");
    when(reqProcessor.process("/sdb/list","{\"path\":\"metadata/apps\"}",token)).thenReturn(response);
    when(reqProcessor.process("/sdb/list","{\"path\":\"metadata/users\"}",token)).thenReturn(responseEmpty);
    when(reqProcessor.process("/sdb/list","{\"path\":\"metadata/shared\"}",token)).thenReturn(responseEmpty);
    int count = ControllerUtil.getCountOfSafesForGivenSafeName("safe01", token);
    assertEquals(1, count);
}