@Override
	public PerfTest getOne(User user, Long id) {
		Specification<PerfTest> spec = Specification.where(idEmptyPredicate());

		// User can see only his own test
		if (user.getRole().equals(Role.USER)) {
			spec = spec.and(createdBy(user));
		}
		spec = spec.and(idEqual(id));

		return perfTestRepository.findOne(spec).orElse(null);
	}
Get {@link PerfTest} list on the user.

@param user user
@return found {@link PerfTest} list
ngrinder-controller/src/main/java/org/ngrinder/perftest/service/PerfTestService.java