@PostMapping({"/", ""})
	public PerfTest create(User user, @RequestBody PerfTest perfTest) {
		checkNull(perfTest.getId(), "id should be null");
		// Make the vuser count optional.
		if (perfTest.getVuserPerAgent() == null && perfTest.getThreads() != null && perfTest.getProcesses() != null) {
			perfTest.setVuserPerAgent(perfTest.getThreads() * perfTest.getProcesses());
		}
		validate(user, null, perfTest);
		return perfTestService.save(user, perfTest);
	}
Create the given perf test.

@param user     user
@param perfTest perf test
@return json message containing test info.
ngrinder-controller/src/main/java/org/ngrinder/perftest/controller/PerfTestApiController.java