@Test
	public void referenceWithOptions() {
		js = parse("jobModuleA --foo=bar --boo=gar");
		JobNode jn = js.getJobNode();
		assertTrue(jn.isJobDescriptor());
		JobReference jr = (JobReference) jn;
		assertTrue(jr.isReference());
		assertFalse(jr.isDefinition());
		assertEquals("jobModuleA", jr.getName());
		ArgumentNode[] args = jr.getArguments();
		assertNull(args);
		assertEquals(2, js.getGlobalOptionsMap().size());
	}
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