@Test
public void testContainsSuffix() {

  final SuffixTree stree = SuffixTreeBuilder.from(new CharacterSequence("cocoa$")).build();
  assertFalse(stree.containsSuffix(new CharacterSequence("c")));
  assertFalse(stree.containsSuffix(new CharacterSequence("co")));
  assertFalse(stree.containsSuffix(new CharacterSequence("coc")));
  assertFalse(stree.containsSuffix(new CharacterSequence("coco")));
  assertFalse(stree.containsSuffix(new CharacterSequence("cocoa")));
  assertFalse(stree.containsSuffix(new CharacterSequence("cx")));
  assertFalse(stree.containsSuffix(new CharacterSequence("cox")));
  assertFalse(stree.containsSuffix(new CharacterSequence("cocx")));
  assertFalse(stree.containsSuffix(new CharacterSequence("cocox")));
  assertFalse(stree.containsSuffix(new CharacterSequence("cocoax")));
  assertFalse(stree.containsSuffix(new CharacterSequence("cocoa$x")));
  assertFalse(stree.containsSuffix(new CharacterSequence("x")));
}