public static byte[] doubleToBytesBE(double d, byte[] bytes, int off) {
        return longToBytesBE(Double.doubleToLongBits(d), bytes, off);
    }
@Test
    public void testDoubleToBytesBE() {
        assertArrayEquals(DOUBLE_PI_BE ,
                ByteUtils.doubleToBytesBE(Math.PI, new byte[8], 0));
    }