FstObjectOutput implements ObjectOutput { @Override public void writeUTF(String v) throws IOException { output.writeUTF(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();  }
@Test public void testWriteUTF() throws IOException { this.fstObjectOutput.writeUTF("I don’t know 知りません Не знаю"); this.flushToInput(); String result = this.fstObjectInput.readUTF(); assertThat(result, is("I don’t know 知りません Не знаю")); }