CustomerDetails { public void setPhone(String phone) { this.phone = phone; } CustomerDetails();  CustomerDetails(String name, String phone, String email, String address); String getAddress(); void setAddress(String address); String getPhone(); void setPhone(String phone); String getEmail(); void setEmail(String email); String getName(); void setName(String name);  }
@Test public void testSetPhone() throws Exception { customerDetails.setPhone(exampleText); assertEquals(customerDetails.getPhone(), exampleText); }