### Question:
TagExtractor { public TagExtractor(String tag, int threshold) { target_ = tag; threshold_ = threshold; count_ = 0; clear(); } TagExtractor(String tag, int threshold); int count(); void clear(); void setTag(String tag); void add(String line); String closeTag();  }### Answer:
@Test public final void testTagExtractor() { TagExtractor extractor = new TagExtractor(null, 0); assertEquals(extractor.target_, null); assertEquals(extractor.threshold_, 0); TagExtractor extractor2 = new TagExtractor("abstract", 10); assertEquals(extractor2.target_, "abstract"); assertEquals(extractor2.threshold_, 10); }