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

	State type;
	JsonPullParser parser =
			JsonPullParser
				.newParser("[null,{\"key1\":true,{\"key2\":false,\"key3\":{\"key4\":{}}}}]");
	type = parser.getEventType();
	assertThat(type, is(State.START_ARRAY));
	parser.discardValue();
	type = parser.getEventType();
	assertThat(type, is(State.START_HASH));
	parser.discardValue();
	type = parser.getEventType();
	assertThat(type, is(State.START_HASH));
	parser.discardValue();
	type = parser.getEventType();
	assertThat(type, is(State.KEY));
	parser.discardHashToken();
	type = parser.getEventType();
	assertThat(type, is(State.END_HASH));
	type = parser.getEventType();
	assertThat(type, is(State.END_HASH));
	type = parser.getEventType();
	assertThat(type, is(State.END_ARRAY));
}