@Test
public void handleDeleteWithoutNetwork() {

    when(driveStreamsManager.deleteDriveFile(syncState1, true)).thenReturn(Single.just(newSyncState1));
    when(syncState1.isSynced(SyncProvider.GoogleDrive)).thenReturn(false);
    when(syncState1.isMarkedForDeletion(SyncProvider.GoogleDrive)).thenReturn(true);
    when(networkManager.isNetworkAvailable()).thenReturn(false);
    driveReceiptsManager.handleDelete(receipt1);
    verify(receiptTableController, never()).delete(receiptCaptor.capture(), operationMetadataCaptor.capture());
}