GsonJsonObjectOutput implements ObjectOutput { @Override public void writeLong(long v) throws IOException { writeObject(v); } GsonJsonObjectOutput(OutputStream out);  GsonJsonObjectOutput(Writer writer); @Override void writeBool(boolean v); @Override void writeByte(byte v); @Override void writeShort(short v); @Override void writeInt(int v); @Override void writeLong(long v); @Override void writeFloat(float v); @Override void writeDouble(double v); @Override void writeUTF(String v); @Override void writeBytes(byte[] b); @Override void writeBytes(byte[] b, int off, int len); @Override void writeObject(Object obj); @Override void flushBuffer();  }
@Test public void testWriteLong() throws IOException { this.gsonJsonObjectOutput.writeLong(1000L); this.flushToInput(); assertThat(gsonJsonObjectInput.readLong(), is(1000L)); }