@Override
  public byte[] getBytes() {
    ByteBuffer buf = ByteBuffer.allocate(10);
    buf.putShort((short) 1);
    buf.putLong(partition);
    return buf.array();
  }
Mock partition id for unit tests
ambry-test-utils/src/main/java/com/github/ambry/clustermap/MockPartitionId.java