@Test
public void testSecondSubscriptionReceiveLastResult() throws Exception {

    Observable<Integer> observable = Observable.just(6, 8, 10);
    TestSubscriber<Integer> testSubscriber1 = new TestSubscriber<>();
    TestSubscriber<Integer> testSubscriber2 = new TestSubscriber<>();
    observable
            .compose(mLifecycleHandler.<Integer>load(5))
            .subscribe(testSubscriber1);
    observable
            .compose(mLifecycleHandler.<Integer>load(5))
            .subscribe(testSubscriber2);
    testSubscriber1.assertValues(6, 8, 10);
    testSubscriber1.assertCompleted();
    testSubscriber2.assertValue(10);
    testSubscriber2.assertCompleted();
}