PlayerRow { public String shortName() { return SHORT_NAME_PATTERN.matcher(name).replaceAll("."); } PlayerRow(int rank, int playerId, String name, String countryId, Boolean active);  PlayerRow(PlayerRow player); int getRank(); int getPlayerId(); String getName(); Country getCountry(); Boolean getActive(); String shortName();  }
@Test void nameIsShort() { PlayerRow player = new PlayerRow(10, 1000, "Juan Martin Del Potro", "ARG", true); assertThat(player.shortName()).isEqualTo("J. M. D. Potro"); }