Pie extends BakedItem { public double price() { return (BASE_RATE + crustCost) * quantity; } Pie(String nameIn, String flavorIn, int quantityIn, 
               double crustCostIn, String ... ingredientsIn); double getCrustCost(); void setCrustCost(double crustCostIn); double price(); static final double BASE_RATE; }
@Test public void priceTest() { Assert.assertEquals("", 12, p1.price(), .001); Assert.assertFalse("", 12 == p2.price()); }