@Test
	public void oneJobReference() {
		js = parse("foojob");

		// Basic data:
		assertEquals("foojob", js.getJobDefinitionText());
		assertEquals(0, js.getStartPos());
		assertEquals(6, js.getEndPos());

		// The job itself:
		assertEquals("foojob", js.stringify());
		JobNode jn = js.getJobNode();
		assertFalse(jn.isSplit());
		assertFalse(jn.isFlow());

		JobReference jd = (JobReference) jn;
		assertTrue(jd.isReference());
		assertEquals("foojob", jd.getName());
	}
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