### Question:
PacketBufferWrapper implements Comparable<PacketBufferWrapper> { public void putShort(final int offset, final short value) { val address = virtualAddress + PAYLOAD_OFFSET; if (DEBUG >= LOG_TRACE) { log.trace("Writing payload short @ 0x{} + {}.", leftPad(virtualAddress), offset); } mmanager.putShort(address + offset, value); }  @Contract(pure = true) long getPhysicalAddress(); @Contract(pure = true) int getSize(); void setSize(final int size); byte getByte(final int offset); void putByte(final int offset, final byte value); short getShort(final int offset); void putShort(final int offset, final short value); int getInt(final int offset); void putInt(final int offset, final int value); long getLong(final int offset); void putLong(final int offset, final long value); void get(final int offset, int bytes, final @NotNull byte[] buffer); void put(final int offset, int bytes, final @NotNull byte[] buffer); @Override @Contract(pure = true) int compareTo(final @NotNull PacketBufferWrapper o); @Override @Contract(pure = true) @NotNull String toString();  }### Answer:
@Test @DisplayName("A short can be written") void putShort() { assume(); for (val virtual : virtuals) { assertThat(virtual).isNotZero(); val number = (short) random.nextInt(Short.MAX_VALUE + 1); val packet = new PacketBufferWrapper(virtual); packet.putShort(0, number); val base = virtual + PacketBufferWrapperConstants.PAYLOAD_OFFSET; assertThat(mmanager.getShortVolatile(base)).as("Payload short").isEqualTo(number); } }