### Question:
TwitterTagger extends RegExTagger { private TwitterTagger() { super(TWITTER_PATTERN, TWITTER_TAG_NAME); } private  TwitterTagger();  static final String TWITTER_TAG_NAME; static final TwitterTagger INSTANCE; }### Answer:
@Test public void testTwitterTagger() { TwitterTagger tagger = TwitterTagger.INSTANCE; List<Annotation> annotations = tagger.getAnnotations(TWEET_TEXT); assertEquals(7, annotations.size()); assertEquals(0, annotations.get(0).getStartPosition()); assertEquals(5, annotations.get(0).getEndPosition()); assertEquals("@cnni", annotations.get(0).getValue()); assertEquals(122, annotations.get(6).getStartPosition()); assertEquals(126, annotations.get(6).getEndPosition()); assertEquals("#uae", annotations.get(6).getValue()); }