### Question:
BufferedFileOutput implements RandomAccess, DataOutput, Flushable, Closeable { @Override public void writeInt(int v) throws IOException { write0((v >> Byte.SIZE * 3) & 0xff); write0((v >> Byte.SIZE * 2) & 0xff); write0((v >> Byte.SIZE * 1) & 0xff); write0((v >> Byte.SIZE * 0) & 0xff); } BufferedFileOutput(RandomAccessFile file, int bufferSize);  BufferedFileOutput(RandomAccessFile file, byte[] buffer); void sync(); void seek(long position); long getPosition(); long getSize(); @Override void write(int b); @Override void write(byte[] b); @Override void write(byte[] b, int off, int len); @Override void writeBoolean(boolean v); @Override void writeByte(int v); @Override void writeShort(int v); @Override void writeChar(int v); @Override void writeInt(int v); @Override void writeLong(long v); @Override void writeFloat(float v); @Override void writeDouble(double v); @Override void writeBytes(String s); @Override void writeChars(String s); @Override void writeUTF(String s); @Override void flush(); @Override void close();  }### Answer:
@Test public void testWriteInt() throws Exception { RandomAccessFile file = file(); BufferedFileOutput buf = manage(new BufferedFileOutput(file, 100)); buf.writeInt(100); buf.writeInt(-100); buf.writeInt(0x12345678); buf.flush(); file.seek(0); assertThat(file.readInt(), is(100)); assertThat(file.readInt(), is(-100)); assertThat(file.readInt(), is(0x12345678)); eof(file); }