@Test
	public void inlineJobDefWithTwoArguments() {
		String dsl = "foo foo --name=value --x=y";
		if (JobParser.SUPPORTS_INLINE_JOB_DEFINITIONS) {
			js = parse(dsl);
			List<JobDefinition> jds = js.getJobDefinitions();
			assertEquals(1, jds.size());
			assertEquals(dsl, jds.get(0).stringify(false));
		}
		else {
			checkForParseError(dsl, JobDSLMessage.EXPECTED_FLOW_OR_SPLIT_CHARS, 4, "foo");
		}
	}
Parse job specifications and verify either the correct abstract syntax tree is produced or the current exception comes out.
The parser does no semantic validation, it is purely syntax checking.

@author Andy Clement
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/job/dsl/JobParserTests.java