JsonBuffer implements Serializable { public <R extends T> R get(JsonAdapter<R> adapter) { try { Buffer buffer = new Buffer(); buffer.write(this.buffer); return adapter.fromJson(buffer); } catch (IOException e) { throw new RuntimeException("JsonBuffer failed to deserialize value with [" + adapter.getClass() + "]", e); } } private  JsonBuffer(byte[] buffer); R get(JsonAdapter<R> adapter); static JsonBuffer<T> create(JsonAdapter<T> adapter, T value); @Override boolean equals(Object o); @Override int hashCode();  }
@Test public void resolve() { assertThat(createJsonBuffer().get(TestUtil.moshi().adapter(Meta.class)), equalTo(createMeta())); }