### Question:
QuotaAOImpl extends IRODSGenericAO implements QuotaAO { @Override public List<Quota> listAllQuota() throws JargonException { log.info("listAllQuota()"); List<Quota> quota = new ArrayList<Quota>(); AbstractAliasedQuery simpleQuery = SimpleQuery.instanceWithNoArguments(ALL_QUOTA_QUERY, 0); log.info("exec simple query to get quota values"); IRODSQueryResultSetInterface resultSet = getSimpleQueryExecutorAO().executeSimpleQuery(simpleQuery); Quota quotaValue = null; for (IRODSQueryResultRow row : resultSet.getResults()) { quota.add(buildQuotaFromPerResourceResultRow(row)); log.info("added quota value:{}", quotaValue); } return quota; } protected  QuotaAOImpl(final IRODSSession irodsSession, final IRODSAccount irodsAccount); @Override List<Quota> listAllQuota(); @Override List<Quota> listAllGlobalQuota(); @Override void setUserQuotaTotal(final String userName, final long quotaValue); @Override void setUserGroupQuotaTotal(final String userGroupName, final long quotaValue); @Override void setUserQuotaForResource(final String userName, final String resourceName, final long quotaValue); @Override void setUserGroupQuotaForResource(final String userGroupName, final String resourceName,
			final long quotaValue); @Override List<Quota> listQuotaForAUser(final String userName); @Override Quota getGlobalQuotaForAUser(final String userName); @Override void calculateQuotaUsage(); static final Logger log; static final String ALL_QUOTA_GLOBAL_QUERY; static final String QUOTA_GLOBAL_FOR_USER_AND_ZONE_QUERY; static final String ALL_QUOTA_QUERY; static final String QUOTA_FOR_USER_AND_ZONE_QUERY; }### Answer:
@Test(expected = NoAPIPrivException.class) public void testListAllNotRodsadmin() throws Exception { IRODSAccount irodsAccount = testingPropertiesHelper .buildIRODSAccountFromTertiaryTestProperties(testingProperties); QuotaAO quotaAO = irodsFileSystem.getIRODSAccessObjectFactory().getQuotaAO(irodsAccount); quotaAO.listAllQuota(); }