@Test
void testCopyDuplicates() throws SQLException {

    var transactions = new HashSet<Transaction>();
    transactions.add(transaction(1));
    transactions.add(transaction(2));
    transactions.add(transaction(2));// duplicate transaction to be ignored with no error on attempted copy
    transactions.add(transaction(3));
    transactionPgCopy.copy(transactions, dataSource.getConnection());
    assertThat(transactionRepository.findAll()).hasSize(3).containsExactlyInAnyOrderElementsOf(transactions);
}