@Test
public void setRemainingScans() {

    TestObserver<Integer> testObserver = localOcrScansTracker.getRemainingScansStream().test();
    localOcrScansTracker.setRemainingScans(50);
    assertEquals(50, localOcrScansTracker.getRemainingScans());
    testObserver.assertValues(0, 50);
    testObserver.assertNotComplete();
    testObserver.assertNoErrors();
}