SimpleSequence cssClass = new SimpleSequence();
cssClass.add("matched_text");
cssClass.add("search-term");
//args.add(new SimpleScalar("abc 123 <img src=\"http://foo.abc.com/abcworld\">abc</a> 123 kkkabckk"));
args.add(new SimpleScalar("<span style=\"font-weight: bold;\"><span class=\"Title\"></span>Mikes writes: " +
"</span>A lengthy article in Spiegel explores the possibility that global warming might make life on Earth better, " +
"not just for humans, but all species. The article argues that 'worst-case scenarios' " +
"are often the result of inaccurate <strong>simulations</strong> " +
"made in the 1980s. While climate change is a reality, as far as the " +
"article is concerned, some planning and forethought may mean that more " +
"benefits than drawbacks will result from higher temperatures. <font color=\"red\">From " +
"the article</font>:'The medical benefits of higher average temperatures have also " +
"been ignored. According to Richard Tol, an environmental economist, "warming " +
"temperatures will mean that in 2050 there will be about 40,000 fewer deaths " +
"in Germany attributable to cold-related illnesses like the flu."<ul>" +
"<li> Another widespread fear about global warming -- that it will cause super-storms that could devastate" +
"towns and villages with unprecedented fury -- also appears to be unfounded. </li>" +
"<li>Current long-term simulations, at any rate, do not suggest that such a trend will in fact materialize.'"</li></ul>"));
args.add(texts);
args.add(new SimpleScalar("SPAN"));
args.add(cssClass);
HighlightTextMethod method = new HighlightTextMethod();
String output = (String) method.exec(args);
assertNotNull(output);