NamePerson extends Name { @Override public String getNameNormalizeCase() { if (!WordUtil.isMixedCase(getName())){ return NameUtil.normalizeCase(getName()); } return getName(); } NamePerson(String firstName, String lastName);  NamePerson(String firstName, String middleName, String lastName); @Override String getName(); @Override String getNameNormalizeCase(); String getFirstName(); String getMiddleName(); String getLastName(); boolean validate(); String getAbbreviatedName(); String getInitials(); @Override String toString();  }
@Test public void fullNameNormCase() throws InvalidDataException { NamePerson name = new NamePerson("JOHN", "VAN DER DOE"); String normCase = name.getNameNormalizeCase(); String expect = "Van der Doe, John"; assertEquals(expect, normCase); }