@Test
public void postUpdateSuccessWithNewFile() throws Exception {

    final Receipt updatedReceipt = mock(Receipt.class);
    final File file = new File("abc");
    final File newFile = new File("efg");
    when(receipt.getFile()).thenReturn(file);
    when(updatedReceipt.getFile()).thenReturn(newFile);
    receiptTableActionAlterations.postUpdate(receipt, updatedReceipt)
            .test()
            .assertValue(updatedReceipt)
            .assertComplete()
            .assertNoErrors();
    verify(storageManager).delete(file);
    verify(picasso).invalidate(file);
}