### Question:
JavaName { public String toTypeName() { if (words.isEmpty()) { return EMPTY_NAME; } StringBuilder buf = new StringBuilder(); for (int i = 0, n = words.size(); i < n; i++) { buf.append(capitalize(words.get(i))); } return buf.toString(); } 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 toTypeName() { JavaName name = JavaName.of("OneTwoThreeFour"); assertThat(name.toTypeName(), is("OneTwoThreeFour")); }