throws Exception
{
super.prepareTest();
UnitOfWork uow = module.currentUnitOfWork();
HANDLING_EVENTS = uow.get( HandlingEventAggregateRoot.class, HandlingEventAggregateRoot.HANDLING_EVENTS_ID );
CargoAggregateRoot CARGOS = uow.get( CargoAggregateRoot.class, CargoAggregateRoot.CARGOS_ID );
// Create new cargo
routeSpec = routeSpecFactory.build( HONGKONG, STOCKHOLM, new Date(), deadline = DAY24 );
delivery = delivery( TODAY, NOT_RECEIVED, ROUTED, unknownLeg );
cargo = CARGOS.createCargo( routeSpec, delivery, "ABC" );
cargo.itinerary().set( itinerary );
trackingId = cargo.trackingId().get();
}