### Question:
DoubleAccessor implements PropertyAccessor<Double> { @Override public Double fromBytes(Class targetClass, byte[] data) { if (data == null || data.length != 8) return (double) 0x0; return Double.longBitsToDouble(toLong(data)); }  @Override Double fromBytes(Class targetClass, byte[] data); @Override byte[] toBytes(Object object); @Override String toString(Object object); @Override Double fromString(Class targetClass, String s); @Override Double getCopy(Object object); Double getInstance(Class<?> clazz);  }### Answer:
@Test public void testFromBytes() { Assert.assertEquals(0.0, accessor.fromBytes(Double.class, null)); Double d1 = new Double(4.555); byte[] b = accessor.toBytes(d1); Double d2 = accessor.fromBytes(Double.class, b); Assert.assertEquals(d1, d2); }