/** Test of toString method, of class AdvancedCoffeeMachine. */ @Test public void testToString() { System.out.println("toString"); AdvancedCoffeeMachine instance = new AdvancedCoffeeMachine(); String expResult = "\"MAX_WATER\":" + instance.MAX_WATER + ",\"MAX_BEANS\":" + instance.MAX_BEANS + ",\"MAX_MILK\":" + instance.MAX_MILK + ",\"waterLevel\":" + instance.waterLevel + ",\"beansLevel\":" + instance.beansLevel + ",\"milkLevel\":" + instance.getMilkLevel() + ",\"poweredOn\":" + instance.poweredOn; String result = instance.toString(); assertEquals(expResult, result); }