@Test(
     groups = {"wso2.greg"},
     dependsOnMethods = {"addResource"})
 public void searchActivityByAvailableUser()
     throws RegistryExceptionException, RemoteException, ResourceAdminServiceExceptionException {
   assertNotNull(
       activityAdminServiceClient
           .getActivities(
               environment.getGreg().getSessionCookie(),
               userInfo.getUserName(),
               "/_system/governance/trunk/wsdls/eu/dataaccess/footballpool/" + resourceName,
               "",
               "",
               "",
               0)
           .getActivity());
   resourceAdminServiceClient.deleteResource(wsdlPath + resourceName);
 }
 @Test(
     groups = {"wso2.greg"},
     dependsOnMethods = {"addResource"})
 public void searchActivityByUnAvailableUser()
     throws RegistryExceptionException, RemoteException,
         GetAllRolesNamesUserAdminExceptionException {
   int id = 0;
   String unAvailableUser = "******" + id;
   while (userManagementClient.userNameExists(unAvailableUser, unAvailableUser)) {
     if (!userManagementClient.userNameExists(unAvailableUser, unAvailableUser)) {
       id++;
     }
     unAvailableUser = "******" + id;
   }
   assertNull(
       activityAdminServiceClient
           .getActivities(
               environment.getGreg().getSessionCookie(), unAvailableUser, "", "", "", "", 0)
           .getActivity());
 }