Customer implements Comparable<Customer> { public String toString() { return getName() + "\n" + getLocation() + "\n$" + getBalance(); } Customer(String nameIn); String getName(); void setLocation(String locationIn); void changeBalance(double amount); String getLocation(); double getBalance(); void setLocation(String city, String state); String toString(); int compareTo(Customer obj);  }
@Test public void toStringTest() { Customer cstmr = new Customer("Lane, Jane"); cstmr.setLocation("Auburn, AL"); cstmr.changeBalance(999); Assert.assertEquals("Lane, Jane\nAuburn, AL\n$999.0", cstmr.toString()); }