### Question:
DCPersonName { public String getFirstNames() { return ((firstNames == null) ? "" : firstNames); } DCPersonName();  DCPersonName(String rawValue);  DCPersonName(String lastNameIn, String firstNamesIn); String toString(); String getFirstNames(); String getLastName();  }### Answer:
@Test public void testGetFirstNames() { dc = new DCPersonName(null, null); assertThat("testGetFirstNames 0", dc.getFirstNames(), equalTo("")); dc = new DCPersonName("name", null); assertThat("testGetFirstNames 1", dc.getFirstNames(), equalTo("")); dc = new DCPersonName(null, "firstname"); assertThat("testGetFirstNames 2", dc.getFirstNames(), equalTo("firstname")); dc = new DCPersonName("name","firstname"); assertThat("testGetFirstNames 3", dc.getFirstNames(), equalTo("firstname")); }
@Test public void testGetFirstNames() { dc = new DCPersonName(null, null); assertThat("testGetFirstNames 0", dc.getFirstNames(), equalTo("")); dc = new DCPersonName("name", null); assertThat("testGetFirstNames 1", dc.getFirstNames(), equalTo("")); dc = new DCPersonName(null, "firstname"); assertThat("testGetFirstNames 2", dc.getFirstNames(), equalTo("firstname")); dc = new DCPersonName("name", "firstname"); assertThat("testGetFirstNames 3", dc.getFirstNames(), equalTo("firstname")); }