### Question:
ByteVector { public ByteVector putInt(final int intValue) { int currentLength = length; if (currentLength + 4 > data.length) { enlarge(4); } byte[] currentData = data; currentData[currentLength++] = (byte) (intValue >>> 24); currentData[currentLength++] = (byte) (intValue >>> 16); currentData[currentLength++] = (byte) (intValue >>> 8); currentData[currentLength++] = (byte) intValue; length = currentLength; return this; } ByteVector();  ByteVector(final int initialCapacity);   ByteVector(final byte[] data); ByteVector putByte(final int byteValue); ByteVector putShort(final int shortValue); ByteVector putInt(final int intValue); ByteVector putLong(final long longValue); ByteVector putUTF8(final String stringValue); ByteVector putByteArray(
      final byte[] byteArrayValue, final int byteOffset, final int byteLength);  }### Answer:
@Test public void testPutInt() { ByteVector byteVector = new ByteVector(0); byteVector.putInt(0x01020304); assertArrayEquals(new byte[] {1, 2, 3, 4}, toArray(byteVector)); }