	@Test
	public void testIssue25ValidateErrorMessage() throws Exception {

		try {
			SqlPartialParser.parseFromPath("/co/jirm/core/sql/partial-test-validate.sql#other");
			fail("Should have thrown an exception");
		}
		catch (JirmIllegalStateException e) {
			assertEquals("Reference '> #stuff' in /co/jirm/core/sql/partial-test-validate.sql at line: 44 does" +
					"\nNOT MATCH declaration /co/jirm/core/sql/partial-test-validate.sql#stuff at line: 1\n" + 
					"REFERENCE:\n" + 
					"c.id, c.name, c.tags, c.category, c.description\n" + 
					"DECLARATION:\n" + 
					"c.id, c.name, c.tags, c.category, c.description, \n" + 
					"c.division, c.experience_level as \"experienceLevel\", \n" + 
					"c.locations, c.type, c.parent_id as \"parentId\", \n" + 
					"g.latitude as \"latitude\", g.longitude as \"longitude\"\n" + 
					"", e.getMessage());
		}
		catch (Exception e) {
			fail("should have thrown the right exception");
		}
	}