@Test
	public void inlineJobDefinition() {
		String dsl = "jobModuleA jobNameA";
		if (JobParser.SUPPORTS_INLINE_JOB_DEFINITIONS) {
			js = parse(dsl);
			JobNode jn = js.getJobNode();
			assertTrue(jn.isJobDescriptor());
			JobDefinition jd = (JobDefinition) jn;
			assertFalse(jd.isReference());
			assertTrue(jd.isDefinition());
			assertEquals("jobModuleA", jd.getJobModuleName());
			assertEquals("jobNameA", jd.getJobName());
		}
		else {
			checkForParseError(dsl, JobDSLMessage.EXPECTED_FLOW_OR_SPLIT_CHARS, 11, "jobNameA");
		}
	}
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