### Question:
DoubleAccessor implements PropertyAccessor<Double> { @Override public byte[] toBytes(Object object) throws PropertyAccessException { return object != null ? fromLong(Double.doubleToRawLongBits((Double) object)) : null; }  @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 testToBytes() { Assert.assertNull(accessor.toBytes(null)); Double d1 = new Double(4.555); byte[] b = accessor.toBytes(d1); Double d2 = accessor.fromBytes(Double.class, b); Assert.assertEquals(d1, d2); }