### Question:
Key { public static Key get(int size) { return new Key().allocate(size); } 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 testAllocateNegativeSizeThrowsException() { Key.get(-KEY_SIZE); }
@Test(expectedExceptions=IllegalArgumentException.class) public void testAllocateZeroSizeThrowsException() { Key.get(0); }
@Test(expectedExceptions=IllegalArgumentException.class) public void testAllocateOverSizeThrowsException() { Key.get(Key.FUSION_IO_MAX_KEY_SIZE+1); }