protected boolean hasEnoughFreeAgents(PerfTest test) {
		int size = agentService.getAllAttachedFreeApprovedAgentsForUser(test.getCreatedBy().getUserId(), test.getRegion()).size();
		if (test.getAgentCount() != null && test.getAgentCount() > size) {
			perfTestService.markProgress(test, "The test is tried to execute but there is not enough free agents."
					+ "\n- Current free agent count : " + size + "  / Requested : " + test.getAgentCount() + "\n");
			return false;
		}
		return true;
	}
Check the free agent availability for the given {@link PerfTest}.

@param test {@link PerfTest}
@return true if enough agents
ngrinder-controller/src/main/java/org/ngrinder/perftest/service/PerfTestRunnable.java