public void kryoUnregisteredTest() {
Kryo serial = new Kryo();
serial.setRegistrationRequired(false);
Output b1 = new Output(100), b2 = new Output(100);
serial.writeObject(b1, a);
serial.writeObject(b2, b);
Input i1 = new Input(b1.getBuffer(),0,b1.position()), i2 = new Input(b2.getBuffer(),0,b2.position());
Kryo serial2 = new Kryo();
serial2.setRegistrationRequired(false);
assertTrue(Arrays.equals(b, serial2.readObject(i2, b.getClass())));