### Question:
SmileyTagger extends RegExTagger { private SmileyTagger() { super(SMILEY_PATTERN, SMILEY_TAG_NAME); } private  SmileyTagger();  static final String SMILEY_TAG_NAME; static SmileyTagger INSTANCE; }### Answer:
@Test public void testSmileyTagger() { String text = "This is a nice day :) and the sun shines ;)"; List<Annotation> annotations = SmileyTagger.INSTANCE.getAnnotations(text); assertEquals(2, annotations.size()); assertEquals(19, annotations.get(0).getStartPosition()); assertEquals(":)", annotations.get(0).getValue()); assertEquals(41, annotations.get(1).getStartPosition()); assertEquals(";)", annotations.get(1).getValue()); }