@Override
  public void setUp() throws Exception {
    super.setUp();
    TransientBuilder<VoyageComposite> voyageBuilder =
        transientBuilderFactory.newTransientBuilder(VoyageComposite.class);
    voyageBuilder.prototypeFor(Voyage.class).bookedCargoSize().set(0.0);
    voyageBuilder.prototypeFor(Voyage.class).capacity().set(100.0);
    voyage = voyageBuilder.newInstance();

    TransientBuilder<ShippingServiceComposite> shippingBuilder =
        transientBuilderFactory.newTransientBuilder(ShippingServiceComposite.class);
    shippingService = shippingBuilder.newInstance();
  }
 private Cargo newCargo(double size) {
   TransientBuilder<CargoComposite> builder =
       transientBuilderFactory.newTransientBuilder(CargoComposite.class);
   builder.prototypeFor(Cargo.class).size().set(size);
   return builder.newInstance();
 }