@Test
public void postUpdateSuccessWithSameFile() throws Exception {

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