### Question:
Utils { public static double bytesToDouble(final byte[] bytes) { if (bytes.length < 8) { throw new IllegalArgumentException("Byte array must be 8 bytes wide."); } return Double.longBitsToDouble(bytesToLong(bytes)); }  static Random random(); static String ASCIIString(int length); static long hash(long val); static int FNVhash32(int val); static long FNVhash64(long val); static long bytesToLong(final byte[] bytes); static byte[] longToBytes(final long val); static double bytesToDouble(final byte[] bytes); static byte[] doubleToBytes(final double val); static int getActiveThreadCount(); static long getUsedMemoryBytes(); static int getUsedMemoryMegaBytes(); static double getSystemLoadAverage(); static long getGCTotalCollectionCount(); static long getGCTotalTime(); static Map<String, Long[]> getGCStatst(); static final int FNV_offset_basis_32; static final int FNV_prime_32; static final long FNV_offset_basis_64; static final long FNV_prime_64; }### Answer:
@Test (expectedExceptions = IllegalArgumentException.class) public void bytesToDoubleTooShort() throws Exception { Utils.bytesToDouble(new byte[] { 0, 0, 0, 0, 0, 0, 0 }); }