Program: 130895
Project: 130895
Buggy source:
@Test public void shippingInfo() throws Exception {
  withShippingMethodForGermany(client(),shippingMethod -> {
    withTransientTaxCategory(client(),taxCategory -> {
      final MonetaryAmount price=EURO_5;
      final MonetaryAmount freeAbove=EURO_30;
      final ShippingRate shippingRate=ShippingRate.of(price,freeAbove);
      final TaxRate taxRate=taxCategory.getTaxRates().get(0);
      final Reference<TaxCategory> taxCategoryRef=taxCategory.toReference();
      final Optional<Reference<ShippingMethod>> shippingMethodRef=Optional.of(shippingMethod.toReference());
      final ZonedDateTime createdAt=ZonedDateTime.now().minusSeconds(4);
      final ParcelMeasurements parcelMeasurements=ParcelMeasurements.of(2,3,1,3);
      final DeliveryItem deliveryItem=DeliveryItem.of(new LineItemLike(){
        private final String id=randomKey();
        @Override public String getId(){
          return id;
        }
        @Override public Set<ItemState> getState(){
          throw new UnsupportedOperationException();
        }
        @Override public long getQuantity(){
          return 2;
        }
        @Override public Optional<DiscountedLineItemPrice> getDiscountedPrice(){
          return Optional.empty();
        }
      }
,5);
      final String deliveryId=randomKey();
      final TrackingData trackingData=TrackingData.of().withTrackingId("String_Node_Str").withCarrier("String_Node_Str").withProvider("String_Node_Str").withProviderTransaction("String_Node_Str").withIsReturn(true);
      final Parcel parcel=Parcel.of(randomKey(),createdAt,Optional.of(parcelMeasurements),Optional.of(trackingData));
      final List<Delivery> deliveries=asList(Delivery.of(deliveryId,createdAt,asList(deliveryItem),asList(parcel)));
      final OrderShippingInfo shippingInfo=OrderShippingInfo.of(randomString(),price,shippingRate,taxRate,taxCategoryRef,shippingMethodRef,deliveries);
      testOrderAspect(builder -> builder.shippingInfo(shippingInfo),order -> assertThat(order.getShippingInfo()).contains(shippingInfo));
    }
);
  }
);
}

Fixed version (ground truth):
@Test public void shippingInfo() throws Exception {
  withShippingMethodForGermany(client(),shippingMethod -> {
    withTransientTaxCategory(client(),taxCategory -> {
      final MonetaryAmount price=EURO_5;
      final MonetaryAmount freeAbove=EURO_30;
      final ShippingRate shippingRate=ShippingRate.of(price,freeAbove);
      final TaxRate taxRate=taxCategory.getTaxRates().get(0);
      final Reference<TaxCategory> taxCategoryRef=taxCategory.toReference();
      final Optional<Reference<ShippingMethod>> shippingMethodRef=Optional.of(shippingMethod.toReference());
      final ZonedDateTime createdAt=SphereTestUtils.now().minusSeconds(4);
      final ParcelMeasurements parcelMeasurements=ParcelMeasurements.of(2,3,1,3);
      final DeliveryItem deliveryItem=DeliveryItem.of(new LineItemLike(){
        private final String id=randomKey();
        @Override public String getId(){
          return id;
        }
        @Override public Set<ItemState> getState(){
          throw new UnsupportedOperationException();
        }
        @Override public long getQuantity(){
          return 2;
        }
        @Override public Optional<DiscountedLineItemPrice> getDiscountedPrice(){
          return Optional.empty();
        }
      }
,5);
      final String deliveryId=randomKey();
      final TrackingData trackingData=TrackingData.of().withTrackingId("String_Node_Str").withCarrier("String_Node_Str").withProvider("String_Node_Str").withProviderTransaction("String_Node_Str").withIsReturn(true);
      final Parcel parcel=Parcel.of(randomKey(),createdAt,Optional.of(parcelMeasurements),Optional.of(trackingData));
      final List<Delivery> deliveries=asList(Delivery.of(deliveryId,createdAt,asList(deliveryItem),asList(parcel)));
      final OrderShippingInfo shippingInfo=OrderShippingInfo.of(randomString(),price,shippingRate,taxRate,taxCategoryRef,shippingMethodRef,deliveries);
      testOrderAspect(builder -> builder.shippingInfo(shippingInfo),order -> assertThat(order.getShippingInfo()).contains(shippingInfo));
    }
);
  }
);
}