code: public static Payload createPayload(TestRun testRun) {
  		if (testRun == null) {
  			throw new IllegalArgumentException("The test run must be present.");
  		}
  		
  		Payload payload = new Payload();
  		payload.setTestRun(testRun);
  		
  		return payload;
  	}
docs: Create a payload from a test run
  
  @param testRun The test run to add in the payload
  @return The payload created