### Question:
TableStoreUtils { static byte[] newStoreKey(ByteString rKey, ByteString lKey) { boolean hasRkey = hasRKey(rKey); int keyLen; if (hasRkey) { keyLen = rKey.size() + lKey.size() + 2; } else { keyLen = lKey.size() + 1; } ByteBuf keyBuf = Unpooled.buffer(keyLen); if (hasRkey) { keyBuf.writeByte(HAS_ROUTING_KEY); keyBuf.writeBytes(rKey.asReadOnlyByteBuffer()); keyBuf.writeByte(SEP); keyBuf.writeBytes(lKey.asReadOnlyByteBuffer()); } else { keyBuf.writeByte(NO_ROUTING_KEY); keyBuf.writeBytes(lKey.asReadOnlyByteBuffer()); } return ByteBufUtil.getBytes(keyBuf); }    }### Answer:
@Test public void testNewStoreKey() { assertArrayEquals( storeKeyWithRKey, newStoreKey( ByteString.copyFrom(rKey), ByteString.copyFrom(lKey)) ); assertArrayEquals( storeKeyWithoutRKey, newStoreKey( null, ByteString.copyFrom(lKey)) ); }