	@Test
	public void itShouldTokenizePolygon() throws IOException {

		String s = "POLYGON ((10 10, 10 20))";
		
		WKTTokenizer wktt = new WKTTokenizer(s);
		
		wktt.nextToken();
		assertEquals("POLYGON", wktt.sval);
		wktt.nextToken();
		assertEquals("(", wktt.sval);
		wktt.nextToken();
		assertEquals("(", wktt.sval);
		wktt.nextToken();
		assertEquals("10", wktt.sval);
		wktt.nextToken();
		assertEquals("10", wktt.sval);
		wktt.nextToken();
		assertEquals(",", wktt.sval);
		wktt.nextToken();
		assertEquals("10", wktt.sval);
		wktt.nextToken();
		assertEquals("20", wktt.sval);
		wktt.nextToken();
		assertEquals(")", wktt.sval);
		wktt.nextToken();
		assertEquals(")", wktt.sval);
		
		assertEquals(-1, wktt.nextToken());
	}