List<TransportCostBasis> list = transportCostManager
.generateTransportCostList(new Periode(YEAR, WEEK_50, WEEK_50));
assertNotNull(list);
assertEquals(1, list.size());
TransportCostBasis transportCostBasis = list.get(0);
assertNotNull(transportCostBasis.getTransportCostBasisId());
List<TransportCostBasis> transportCostBasisList = transportCostBasisManager
.findById(transportCostBasis.getTransportCostBasisId());
assertEquals(1, transportCostBasisList.size());
transportCostBasisManager.setInvoiceNr(transportCostBasis, "1111");
transportCostBasisList = transportCostBasisManager
.findById(transportCostBasis.getTransportCostBasisId());
assertEquals(1, transportCostBasisList.size());
allTransportCostBasis.addAll(list);
transportCostBasis = transportCostBasisList.get(0);
assertEquals("1111", transportCostBasis.getInvoiceNr());
transportCostBasisManager.lazyLoad(transportCostBasis,
new LazyLoadEnum[][] { { LazyLoadEnum.ORDER_COSTS,
LazyLoadEnum.NONE } });
Set<OrderCost> orderCosts = transportCostBasis.getOrderCosts();
for (OrderCost orderCost : orderCosts) {
assertEquals("1111", orderCost.getInvoiceNr());
}