### Question:
JavaName { public void addLast(String segment) { words.add(normalize(segment)); } JavaName(List<String> words); static JavaName of(String nameString); List<String> getSegments(); String toTypeName(); String toMemberName(); String toConstantName(); String toSnakeName(); void addFirst(String segment); void removeFirst(); void addLast(String segment); void removeLast();  }### Answer:
@Test public void addLast() { JavaName name = JavaName.of("OneTwoThreeFour"); name.addLast("Five"); assertThat(name.getSegments(), contains("one", "two", "three", "four", "five")); }