@Test
public void lookAhead() throws IOException, JsonFormatException {

	State type;
	JsonPullParser parser =
			JsonPullParser
				.newParser("[\"value1\", 2, 0.1 ,true ,{\"test1\":1, \"test2\":null   \n  } ,null]");
	type = parser.lookAhead();
	assertThat(type, is(State.START_ARRAY));
	type = parser.lookAhead();
	assertThat(type, is(State.START_ARRAY));
	type = parser.getEventType();
	assertThat(type, is(State.START_ARRAY));
	type = parser.lookAhead();
	assertThat(type, is(State.VALUE_STRING));
	type = parser.getEventType();
	assertThat(type, is(State.VALUE_STRING));
	type = parser.getEventType();
	assertThat(type, is(State.VALUE_LONG));
}