### Question:
RowKeyCoder { public static byte[] encode(Long pointId, Integer baseTime){ int keySize = SALT_LENGTH + Constant.POINT_LENGTH + Constant.TIMESTAMP_LENGTH; byte[] rowKey = new byte[keySize]; byte[] pointIdBytes = Bytes.fromLong(pointId); System.arraycopy(pointIdBytes, 0, rowKey, SALT_LENGTH, Constant.POINT_LENGTH); byte[] saltBytes = getSalt(pointIdBytes); System.arraycopy(saltBytes, 0, rowKey, 0, SALT_LENGTH); byte[] baseTimeBytes = Bytes.fromInt(baseTime); System.arraycopy(baseTimeBytes, 0, rowKey, Constant.POINT_LENGTH + SALT_LENGTH, Constant.TIMESTAMP_LENGTH); return rowKey; }  static byte[] encode(Long pointId, Integer baseTime); static RowKey decode(byte[] bytes); static byte[] getSalt(byte[] salt_base); static final int SALT_LENGTH; static final int BUCKETS_SIZE; }### Answer:
@Test public void testEncode() { byte[] a = {'6',0,0,0,0,0,(byte)188,97,78,89,(byte)207,(byte)205,(byte)144}; byte[] b = RowKeyCoder.encode(12345678L, 1506790800); if (Bytes.equals(a, b)){ assertTrue(true); } else { assertTrue(false); } }