for (int i = 0; i < 10; i++) {
int value = random.nextInt();
Object obj1 = new Integer(value);
Packet packet = new SerialEncoder().encode(null, obj1);
assertNotNull(packet);
Object obj2 = new SerialDecoder().decode(null, packet);
assertEquals(obj1, obj2);
}