### Question:
Key { public static Key createFrom(long uid) { Key k = Key.get(8); return k.set(uid); } private  Key(); int size(); ByteBuffer getByteBuffer(); Key allocate(int size); long longValue(); Key set(long value); static Key get(int size); static Key createFrom(long uid); static Key createFrom(byte[] data); static final int FUSION_IO_MAX_KEY_SIZE; }### Answer:
@Test(expectedExceptions=IllegalArgumentException.class) public void testCreateFromEmptyByteArray() { Key.createFrom(new byte[0]); }
@Test(expectedExceptions=IllegalArgumentException.class) public void testCreateFromLargeByteArray() { Key.createFrom(new byte[Key.FUSION_IO_MAX_KEY_SIZE+1]); }