### Question:
WordSequence implements Comparable<WordSequence> { public WordSequence getNewest() { WordSequence next = EMPTY; if (size() >= 1) { next = new WordSequence(words.length - 1); System.arraycopy(this.words, 1, next.words, 0, next.words.length); } return next; } private  WordSequence(int size);  WordSequence(Word... words);  WordSequence(List<Word> list); static WordSequence asWordSequence(final Dictionary dictionary,
            String... words); WordSequence addWord(Word word, int maxSize); WordSequence getOldest(); WordSequence getNewest(); WordSequence trim(int maxSize); Word getWord(int n); int size(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object object); WordSequence getSubSequence(int startIndex, int stopIndex); Word[] getWords(); int compareTo(WordSequence other); final static Comparator<WordSequence> OLDEST_COMPARATOR; final static WordSequence EMPTY; }### Answer:
@Test public void getNewest() { WordSequence ws = asWordSequence(dictionary, "one", "two", "three"); assertThat(asWordSequence(dictionary, "two", "three"), equalTo(ws.getNewest())); assertThat(ws.getNewest().getOldest(), equalTo(ws.getOldest() .getNewest())); }