@Test
public void initializeWhenNotLoggedInDoesNothing() {

    // Configure
    when(identityManager.isLoggedInStream()).thenReturn(Observable.just(false));
    // Test
    ocrPurchaseTracker.initialize();
    // Verify
    verify(purchaseManager).addEventListener(ocrPurchaseTracker);
    verify(localOcrScansTracker, never()).setRemainingScans(REMAINING_SCANS);
    verifyNoMoreInteractions(purchaseManager);
    verifyZeroInteractions(webServiceManager);
}