WordCap implements Comparable<WordCap>, Serializable { public boolean isCapitalized() { return isCapitalized; } WordCap(String word, boolean isCapitalized); String getWord(); boolean isCapitalized(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(WordCap o); @Override String toString();  }
@Test public void testIsCapitalized() { WordCap wordCap = new WordCap("aWord", false); assertEquals(wordCap.isCapitalized(), false); }