}
@Test
public void shouldListInvoicesRecordsByQuery() throws InterruptedException {
// Given
InvoiceQuery query = new InvoiceQuery().invoiceId(invoice.invoiceId());
// When
Iterable<InvoiceListingRecord> receivedInvoices = restRepository.listByQuery(query, InvoiceListingRecord.class);
// Then