Voter implements Parcelable { public String getLastName() { return lastName; } Voter();  Voter(String firstName, String lastName, Gender gender); protected  Voter(Parcel in); String getFirstName(); void setFirstName(String firstName); Gender getGender(); void setGender(Gender gender); String getLastName(); void setLastName(String lastName); void setGenderStrings(String male, String female, String unspecified, String unknown); String genderToString(); static String capitalizeFirstLetter(String word); @Override int describeContents(); @Override void writeToParcel(Parcel parcel, int i); static final Creator<Voter> CREATOR; }
@Test public void testLastName1() { String lName = "VAN DE VORst"; String expectedLName = "van de Vorst"; voter = new Voter(firstName, lName, genders[0]); assertEquals(expectedLName, voter.getLastName()); }
@Test public void testLastName2() { String lName = "VorsT"; String expectedLName = "Vorst"; voter = new Voter(firstName, lName, genders[0]); assertEquals(expectedLName, voter.getLastName()); }