Cookie extends BakedItem { public double price() { return BASE_RATE * quantity; } Cookie(String nameIn, String flavorIn, int quantityIn, 
                                       String ... ingredientsIn); double price(); static final double BASE_RATE; }
@Test public void priceTest() { Cookie c = new Cookie("Chips Delight", "Chocolate Chip", 12, "flour", "sugar", "dark chocolate chips", "butter", "baking soda", "salt"); Assert.assertEquals("", 4.199, c.price(), .001); }