### Question:
JavaBeanSerializeUtil { public static Object deserialize(JavaBeanDescriptor beanDescriptor) { Object result = deserialize( beanDescriptor, Thread.currentThread().getContextClassLoader()); return result; } private  JavaBeanSerializeUtil(); static JavaBeanDescriptor serialize(Object obj); static JavaBeanDescriptor serialize(Object obj, JavaBeanAccessor accessor); static Object deserialize(JavaBeanDescriptor beanDescriptor); static Object deserialize(JavaBeanDescriptor beanDescriptor, ClassLoader loader); static Object getConstructorArg(Class<?> cl); static Class<?> name2Class(ClassLoader loader, String name);  }### Answer:
@Test public void testDeserialize_Primitive() { JavaBeanDescriptor descriptor = new JavaBeanDescriptor(long.class.getName(), JavaBeanDescriptor.TYPE_PRIMITIVE); descriptor.setPrimitiveProperty(Long.MAX_VALUE); Assertions.assertEquals(Long.MAX_VALUE, JavaBeanSerializeUtil.deserialize(descriptor)); BigDecimal decimal = BigDecimal.TEN; Assertions.assertEquals(Long.MAX_VALUE, descriptor.setPrimitiveProperty(decimal)); Assertions.assertEquals(decimal, JavaBeanSerializeUtil.deserialize(descriptor)); String string = UUID.randomUUID().toString(); Assertions.assertEquals(decimal, descriptor.setPrimitiveProperty(string)); Assertions.assertEquals(string, JavaBeanSerializeUtil.deserialize(descriptor)); }