@Test
	public void doubleTransition() {
		js = parse("foo | completed = bar | wibble=wobble");
		JobNode jn = js.getJobNode();
		assertTrue(jn.isJobDescriptor());
		JobDescriptor jd = (JobDescriptor) jn;
		List<Transition> transitions = jd.getTransitions();
		assertEquals(2, transitions.size());
		assertEquals("completed", transitions.get(0).getStateName());
		assertEquals("bar", transitions.get(0).getTargetJobName());
		assertEquals("wibble", transitions.get(1).getStateName());
		assertEquals("wobble", transitions.get(1).getTargetJobName());
	}
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