s.assertThat(matchingVariant.getScopedPrice().getDiscounted().getDiscount()) .isEqualTo(productDiscount.toReference()); s.assertThat(matchingVariant.isScopedPriceDiscounted()).isTrue(); s.assertThat(matchingVariant.getScopedPrice()).isNotNull(); s.assertThat(matchingVariant.getScopedPrice().getCurrentValue())