// Path: chapter03/src/main/java/com/blogspot/toomuchcoding/book/chapter3/_5_DelegateTo/TaxService.java
// public interface TaxService {
// 
//     double calculateTaxFactorFor(Person person);
// 
//     void updateTaxData(double taxFactor, Person person);
// 
// }


import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.*;
import static org.mockito.AdditionalAnswers.*;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyDouble;
import static org.mockito.Mockito.*;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import com.blogspot.toomuchcoding.book.chapter3._5_DelegateTo.FinalTaxService;
import com.blogspot.toomuchcoding.book.chapter3._5_DelegateTo.TaxFactorProcessor;
import com.blogspot.toomuchcoding.book.chapter3._5_DelegateTo.TaxService;
import com.blogspot.toomuchcoding.common.testng.MockitoTestNGListener;
import com.blogspot.toomuchcoding.person.Person;
package com.blogspot.toomuchcoding.book.chapter3._5_DelegateTo.hamcrest;




@Listeners(MockitoTestNGListener.class)
public class TaxFactorProcessorTestNgTest {

    FinalTaxService finalTaxService = new FinalTaxService();

// Path: chapter03/src/main/java/com/blogspot/toomuchcoding/book/chapter3/_5_DelegateTo/TaxService.java
// public interface TaxService {
// 
//     double calculateTaxFactorFor(Person person);
// 
//     void updateTaxData(double taxFactor, Person person);
// 
// }


// Path: chapter03/src/test/java/com/blogspot/toomuchcoding/book/chapter3/_5_DelegateTo/hamcrest/TaxFactorProcessorTestNgTest.java
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.*;
import static org.mockito.AdditionalAnswers.*;
import static org.mockito.Matchers.any;
import static org.mockito.Matchers.anyDouble;
import static org.mockito.Mockito.*;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import com.blogspot.toomuchcoding.book.chapter3._5_DelegateTo.FinalTaxService;
import com.blogspot.toomuchcoding.book.chapter3._5_DelegateTo.TaxFactorProcessor;
import com.blogspot.toomuchcoding.book.chapter3._5_DelegateTo.TaxService;
import com.blogspot.toomuchcoding.common.testng.MockitoTestNGListener;
import com.blogspot.toomuchcoding.person.Person;

package com.blogspot.toomuchcoding.book.chapter3._5_DelegateTo.hamcrest;




@Listeners(MockitoTestNGListener.class)
public class TaxFactorProcessorTestNgTest {

    FinalTaxService finalTaxService = new FinalTaxService();

    TaxService taxService = mock(TaxService.class, delegatesTo(finalTaxService));