public virtual void testQueryWithReadPermissionOnDeployment() { // given createGrantAuthorization(DEPLOYMENT, firstDeploymentId, userId, READ); // when DeploymentStatisticsQuery query = managementService.createDeploymentStatisticsQuery(); // then verifyQueryResults(query, 1); DeploymentStatistics statistics = query.singleResult(); verifyStatisticsResult(statistics, 0, 0, 0); }