@Test
void testCopy() throws SQLException {

    var cryptoTransfers = new HashSet<CryptoTransfer>();
    cryptoTransfers.add(cryptoTransfer(1));
    cryptoTransfers.add(cryptoTransfer(2));
    cryptoTransfers.add(cryptoTransfer(3));
    var tokenTransfers = new HashSet<TokenTransfer>();
    tokenTransfers.add(tokenTransfer(1));
    tokenTransfers.add(tokenTransfer(2));
    tokenTransfers.add(tokenTransfer(3));
    cryptoTransferPgCopy.copy(cryptoTransfers, dataSource.getConnection());
    tokenTransferPgCopy.copy(tokenTransfers, dataSource.getConnection());
    assertThat(cryptoTransferRepository.findAll()).containsExactlyInAnyOrderElementsOf(cryptoTransfers);
    assertThat(tokenTransferRepository.findAll()).containsExactlyInAnyOrderElementsOf(tokenTransfers);
}