### Question:
VatCalculator { public int calculateTotal(boolean vatIdAvailable, int price) { BigDecimal net = valueOf(price); if (vatIdAvailable) { return net.intValue(); } else { return net.add(net.multiply(valueOf(0.19))).intValue(); } }  int calculateTotal(boolean vatIdAvailable, int price);  }### Answer:
@Test public void attendeeEU() { final boolean vatIDAvailable = true; int price = this.cut.calculateTotal(vatIDAvailable, 300); assertThat(price, is(300)); price = this.cut.calculateTotal(vatIDAvailable, 600); assertThat(price, is(600)); }
@Test public void attendeeNonEU() { final boolean vatIDAvailable = false; int price = this.cut.calculateTotal(vatIDAvailable, 300); assertThat(price, is(357)); price = this.cut.calculateTotal(vatIDAvailable, 600); assertThat(price, is(714)); }