WeddingCake extends Cake { public double price() { return (BASE_RATE * layers * tiers) * quantity; } WeddingCake(String nameIn, String flavorIn, int quantityIn,
                   int layersIn, int tiersIn, String ... ingredientsIn); int getTiers(); void setTiers(int tiersIn); double price(); static final double BASE_RATE; }
@Test public void priceTest() { Assert.assertEquals("", 45, c1.price(), .001); Assert.assertFalse("", 12 == c2.price()); Assert.assertTrue("", 135 == c3.price()); }