*/
public class SerializerTest {
@Test
public void testByte() throws Exception {
Serializer serializer = new Serializer();
Byte[] b = null;
byte[] buffer = serializer.Serialize(b);
Object obj1 = serializer.Derialize(buffer, Byte[].class);
Short[] s = new Short[] { 1, 2, 3 };
byte[] bs = serializer.Serialize(s);
Map<Byte, Object> map = new HashMap<Byte, Object>();
map.put((byte) 1, "abc");
map.put((byte) 2, 123456L);
map.put((byte) 3, s);
map.put((byte) 4, 123);
map.put((byte) 5, null);
byte[] buf3 = serializer.Serialize(map);
Map<Byte, Object> obj3 = (Map<Byte, Object>) serializer.Derialize(buf3,
Map.class);
System.out.println(obj3.get(5));
}