### Question:
FstObjectOutput implements ObjectOutput { @Override public void writeDouble(double v) throws IOException { output.writeDouble(v); } FstObjectOutput(OutputStream outputStream); @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 writeBytes(byte[] v); @Override void writeBytes(byte[] v, int off, int len); @Override void writeUTF(String v); @Override void writeObject(Object v); @Override void flushBuffer();  }### Answer:
@Test public void testWriteDouble() throws IOException { this.fstObjectOutput.writeDouble(-1.66d); this.flushToInput(); Double result = this.fstObjectInput.readDouble(); assertThat(result, is(-1.66d)); }