@Test
public void onSyncUpdateSuccessForReceiptWithFile() {

    // We always try to sync database changes when they include a receipt file to ensure we update this stuff immediately
    when(mReceipt.getFile()).thenReturn(mock(File.class));
    mListener.onUpdateSuccess(mOldReceipt, mReceipt, new DatabaseOperationMetadata(OperationFamilyType.Sync));
    verify(mDriveDatabaseManager).syncDatabase();
    verify(mDriveReceiptsManager, never()).handleInsertOrUpdate(any(Receipt.class));
}