@Test
	public void globalOptions() {
		js = parse("foo --timeout=100 --pollInterval=1000");
		assertEquals("foo --timeout=100 --pollInterval=1000", js.stringify());
		Map<String, String> options = js.getGlobalOptionsMap();
		assertTrue(options.containsKey("timeout"));
		assertEquals(Integer.toString(100), options.get("timeout"));
		assertTrue(options.containsKey("pollInterval"));
		assertEquals(Integer.toString(1000), options.get("pollInterval"));
		assertEquals(2, options.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