@Test
blic void testJobOverrideProperty() throws Exception {

final User user = new User("testUser5");
// Set job override property in a flow
final Flow flow = new Flow(flowName);
final Node node = new Node(jobName);
flow.addNode(node);
final Map<String, Flow> flowMap = new HashMap();
flowMap.put(flowName, flow);
project.setFlows(flowMap);
final Map<String, String> jobParamGroup = new HashMap();
jobParamGroup.put("type", "command");
jobParamGroup.put("command", "sleep 2");
jobParamGroup.put("dependencies", "job0");
final Props overrideParams = new Props(null, jobParamGroup);
// Add customized event listener
project.addListener((event) -> {
  ProjectEvent projectEvent = (ProjectEvent) event;
  Assert.assertEquals("Event metadata not created as expected.", flowName, projectEvent.getEventData().get("flowName"));
  Assert.assertEquals("Event metadata not created as expected.", jobName, projectEvent.getEventData().get("jobOverridden"));
  Assert.assertEquals("Event metadata not created as expected.", diffMsg, projectEvent.getEventData().get("diffMessage"));
  Assert.assertEquals("Event metadata not created as expected.", "SUCCESS", projectEvent.getEventData().get("projectEventStatus"));
});
// Override a job property
manager.setJobOverrideProperty(project, flow, overrideParams, jobName, node.getJobSource(), user);
}