@Test
@Ignore("Null values not permitted")
public void testSerializeNull() {

    final AtomicReference<Subscriber<Integer>> serial = new AtomicReference<Subscriber<Integer>>();
    TestSubscriber<Integer> ts = new TestSubscriber<Integer>() {
        @Override
        public void onNext(Integer t) {
            if (t != null && t == 0) {
                serial.get().onNext(null);
            }
            super.onNext(t);
        }
    };
    SerializedSubscriber<Integer> sobs = new SerializedSubscriber<Integer>(ts);
    serial.set(sobs);
    sobs.onNext(0);
    ts.assertValues(0, null);
}