Date dtOne = cal.getTime();
OSD llsdDateOne = OSD.FromDate(dtOne);
byte[] binaryDateOneSerialized = BinaryLLSDOSDParser.SerializeLLSDBinary(llsdDateOne);
OSD llsdDateOneDS = BinaryLLSDOSDParser.DeserializeLLSDBinary(binaryDateOneSerialized);
Assert.assertEquals(OSDType.Date, llsdDateOneDS.getType());
Assert.assertEquals(dtOne, llsdDateOneDS.asDate());
cal.set(2010, 11, 11, 10, 8, 20);
Date dtTwo = cal.getTime();
OSD llsdDateTwo = OSD.FromDate(dtTwo);
byte[] binaryDateTwoSerialized = BinaryLLSDOSDParser.SerializeLLSDBinary(llsdDateTwo);