### Question:
PriceUtils { public static MonetaryAmount calculateAppliedTaxes(final TaxedItemPrice taxedPrice) { return taxedPrice.getTotalGross().subtract(taxedPrice.getTotalNet()); } private  PriceUtils(); static MonetaryAmount zeroAmount(final CurrencyUnit currency); static MonetaryAmount calculateAppliedTaxes(final TaxedItemPrice taxedPrice); static MonetaryAmount calculateGrossPrice(final MonetaryAmount amount, final TaxRate taxRate); static MonetaryAmount calculateNetPrice(final MonetaryAmount amount, final TaxRate taxRate); static MonetaryAmount convertNetToGrossPrice(final MonetaryAmount netAmount, final double taxRate); static MonetaryAmount convertGrossToNetPrice(final MonetaryAmount grossAmount, final double taxRate);  }### Answer:
@Test public void calculatesAppliedTaxes() throws Exception { final MonetaryAmount totalNet = monetaryAmountOf(100); final MonetaryAmount totalGross = monetaryAmountOf(119); assertThat(calculateAppliedTaxes(taxedPriceOf(totalNet, totalGross))).isEqualTo(monetaryAmountOf(19)); }