### Question:
Fees { @GET @Produces(MediaType.APPLICATION_JSON) @Path("/shipping") @PermitAll public Double getShippingFee() { if (orderConfiguration!=null){ return orderConfiguration.getFixedDeliveryFee(); } return null; } Fees();  Fees(OrderConfiguration orderConfiguration); @GET @Produces(MediaType.APPLICATION_JSON) @Path("/shipping") @PermitAll Double getShippingFee(); @GET @Path("/vat") @Produces(MediaType.APPLICATION_JSON) @PermitAll Double getVAT();  }### Answer:
@Test public void getShippingFeesShouldReturnConfiguredShippingFeeAsDouble() throws Exception { OrderConfiguration orderConfiguration = orderConfiguration(); Fees fees = new Fees(orderConfiguration); assertThat(fees.getShippingFee()).isEqualTo(11.0); }
@Test public void getVATShouldReturnConfiguredVATAsDouble() throws Exception { OrderConfiguration orderConfiguration = orderConfiguration(); Fees fees = new Fees(orderConfiguration); assertThat(fees.getShippingFee()).isEqualTo(11); }