@Test public void testCompleted() { TestSubscriber<Integer> ts = new TestSubscriber<Integer>(); ts.onCompleted(); try { ts.assertNotCompleted(); } catch (AssertionError ex) { // expected return; } fail("Completed and no assertion error!"); }