@Test
	public void testExceptions01() throws ParsingException, FileNotFoundException, XMLStreamException
	{
		setUp("/test01.xml");
	
		assertEquals(null, parser.getElement());

		parser.next();
		assertEquals("level0", parser.getElement().getName().getLocalPart());

		int level = parser.down();
		assertEquals(1, level);

		parser.next();
		assertEquals("level1_1", parser.getElement().getName().getLocalPart());

		try
		{
			level = parser.down();
			fail("Should throw exception");
		} catch(InvalidParseCommandException e)	{}

		assertEquals(1, level);
		assertEquals("level1_1", parser.getElement().getName().getLocalPart());

		parser.next();
		parser.next();
		parser.next();

		assertEquals("level1_3", parser.getElement().getName().getLocalPart());

		level = parser.down();
		assertEquals(2, level);

		parser.next();
		assertEquals("level2_1", parser.getElement().getName().getLocalPart());

		level = parser.up();
		assertEquals(1, level);
		assertEquals("level1_3", parser.getElement().getName().getLocalPart());

		try
		{
			level = parser.down();
			fail("Should throw exception");
		} catch(InvalidParseCommandException e) {}

		assertEquals(1, level);
		assertEquals("level1_3", parser.getElement().getName().getLocalPart());

		level = parser.up();

		assertEquals(0, level);
		assertEquals("level0", parser.getElement().getName().getLocalPart());

		try
		{
			level = parser.down();
			fail("Should throw exception");
		} catch(InvalidParseCommandException e) {}

		assertEquals(0, level);
		assertEquals("level0", parser.getElement().getName().getLocalPart());
		
		level = parser.up();

		assertEquals(0, level);
		assertEquals("level0", parser.getElement().getName().getLocalPart());
	}