@Test
public void SerializingThenDeserializingDateTimeResultsInSameDateTime() {
ExtensibleTypeInferringSerializer.addSerializer(DateTime.class, DateTimeSerializer.get());
DateTime value = new DateTime(2000, 1, 1, 12, 0);
Serializer serializer = ExtensibleTypeInferringSerializer.getSerializer(DateTime.class);
ByteBuffer buffer = serializer.toByteBuffer(value);
DateTime deserializedDateTime = (DateTime) serializer.fromByteBuffer(buffer);
assertEquals(value, deserializedDateTime);
}