private void assertToken(TokenKind kind, String string, int start, int end, Token t) {
		assertEquals(kind, t.kind);
		assertEquals(string, t.getKind().hasPayload() ? t.stringValue() : new String(t.getKind().getTokenChars()));
		assertEquals(start, t.startpos);
		assertEquals(end, t.endpos);
	}
Load a resource XML file that represents the expected test output.
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/job/dsl/JobParserTests.java