@Test
 public void shouldNotCalculateTaxes() {
   final CartModel cart = mock(CartModel.class);
   given(cart.getNet()).willReturn(Boolean.FALSE);
   final boolean calculateTaxes =
       defaultOmsDetermineExternalTaxStrategy.shouldCalculateExternalTaxes(cart);
   Assert.assertEquals(calculateTaxes, false);
 }
  @Test
  public void shouldCalculateTaxes() {
    final AddressModel address = mock(AddressModel.class);

    final DeliveryModeModel deliveryMode = mock(DeliveryModeModel.class);

    final CartModel cart = mock(CartModel.class);
    final BaseStoreModel baseStore = mock(BaseStoreModel.class);
    given(baseStore.getExternalTaxEnabled()).willReturn(Boolean.TRUE);
    given(cart.getStore()).willReturn(baseStore);
    given(cart.getNet()).willReturn(Boolean.TRUE);
    given(cart.getDeliveryAddress()).willReturn(address);
    given(cart.getDeliveryMode()).willReturn(deliveryMode);
    given(defaultOndemandDeliveryAddressStrategy.getDeliveryAddressForOrder(cart))
        .willReturn(address);

    final boolean calculateTaxes =
        defaultOmsDetermineExternalTaxStrategy.shouldCalculateExternalTaxes(cart);
    Assert.assertEquals(calculateTaxes, true);
  }