Cake extends BakedItem { public double price() { return (BASE_RATE * layers) * quantity; } Cake(String nameIn, String flavorIn, int quantityIn, 
                        int layersIn, String ... ingredientsIn); int getLayers(); void setLayers(int layersIn); double price(); static final double BASE_RATE; }
@Test public void priceTest() { Assert.assertEquals("", 8, c1.price(), .001); Assert.assertFalse("", 12 == c2.price()); }