CustomerDetails { public void setName(String name) { this.name = name; } 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 testSetName() throws Exception { customerDetails.setName(exampleText); assertEquals(customerDetails.getName(), exampleText); }