@Test
	public void toGraphInlineJob() {
		if (JobParser.SUPPORTS_INLINE_JOB_DEFINITIONS) {
			js = parse("filejdbc foo --aaa=bbb || bar");
			assertEquals(toExpectedGraph(
					"n:0:START,n:1:foo:meta-jobModuleName=filejdbc;aaa=bbb,n:2:bar,n:3:END,l:0:1,l:1:2,l:2:3"),
					js.toGraph().toJSON());
		}
		else {
			checkForParseError("filejdbc foo --aaa=bbb || bar", JobDSLMessage.EXPECTED_FLOW_OR_SPLIT_CHARS, 9, "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