001package headfirst.templatemethod.barista;
002
003public class BeverageTestDrive {
004        public static void main(String[] args) {
005
006                Tea tea = new Tea();
007                Coffee coffee = new Coffee();
008
009                System.out.println("\nMaking tea...");
010                tea.prepareRecipe();
011
012                System.out.println("\nMaking coffee...");
013                coffee.prepareRecipe();
014
015
016                TeaWithHook teaHook = new TeaWithHook();
017                CoffeeWithHook coffeeHook = new CoffeeWithHook();
018
019                System.out.println("\nMaking tea...");
020                teaHook.prepareRecipe();
021
022                System.out.println("\nMaking coffee...");
023                coffeeHook.prepareRecipe();
024        }
025}