### Question:
BinaryReader { public int readWord() { byte[] bytes = new byte[4]; readBytes(bytes, 0, 2); return ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN).getInt(); } BinaryReader(BinaryReader binaryReader, int position);  BinaryReader(InputStream inputStream, int size);  BinaryReader(byte[] bytes); int read(); int peek(); byte[] peekBytes(int length); byte[] readBytes(int length); void readBytes(byte[] buf, int offset, int length); String readGuid(); String readString(int length); String readWString(int length); UnsignedLong readQWord(); UnsignedInteger readDWord(); UnsignedInteger readDWordBE(); int readWord(); int readWordBE(); Date readFileTime(); String readAndBase64EncodeBinary(int length); void skip(int bytes); int getPosition(); byte[] getBytes(); static final long EPOCH_OFFSET; static final int[][] INDEX_ARRAYS; }### Answer:
@Test public void testReadWord() throws IOException { int intValue = Short.MAX_VALUE + 500; BinaryReader binaryReader = testBinaryReaderBuilder.putWord(intValue).build(); assertEquals(intValue, binaryReader.readWord()); assertEquals(2, binaryReader.getPosition()); }