@Test
public void hasAvailableScans() {

    when(localOcrScansTracker.getRemainingScans()).thenReturn(50);
    assertTrue(ocrPurchaseTracker.hasAvailableScans());
    when(localOcrScansTracker.getRemainingScans()).thenReturn(0);
    assertFalse(ocrPurchaseTracker.hasAvailableScans());
}