@Test
public void preUpdateWithoutFile() {

    final List<Receipt> receiptsInTrip = Arrays.asList(mock(Receipt.class), mock(Receipt.class), mock(Receipt.class));
    when(receiptsTable.get(trip)).thenReturn(Single.just(receiptsInTrip));
    final Receipt oldReceipt = mock(Receipt.class);
    when(oldReceipt.getDate()).thenReturn(DATE);
    when(oldReceipt.getTimeZone()).thenReturn(TIMEZONE);
    when(receipt.getFile()).thenReturn(null);
    receiptTableActionAlterations.preUpdate(oldReceipt, receipt)
            .test()
            .assertValue(receipt)
            .assertComplete()
            .assertNoErrors();
}