URI invoiceUri = restTemplate.postForLocation("http://localhost:8080/invoice", invoice);
Invoice receivedInvoice = restTemplate.getForObject(invoiceUri, Invoice.class);
// Then
assertEquals(1, receivedInvoice.getCorrections().size());
assertEquals(correction.getNetValue(), receivedInvoice.corrections().get(0).getNetValue());
}
}