jp.close();
buf.close();
// and finally as scalar
buf = new TokenBuffer(mapper, false);
buf.writeNumber(321);
json = mapper.writeValueAsString(new ObjectHolder(buf));
holder = mapper.readValue(json, ObjectHolder.class);
assertNotNull(holder.value);
assertSame(TokenBuffer.class, holder.value.getClass());
jp = ((TokenBuffer) holder.value).asParser();