@Test
    public void testXpath2Selector() {
        Xpath2Selector xpath2Selector = new Xpath2Selector("//xhtml:a/@href");
        String select = xpath2Selector.select(html);
        Assert.assertEquals("http://www.oschina.net/", select);

        List<String> selectList = xpath2Selector.selectList(html);
        Assert.assertEquals(113, selectList.size());
        Assert.assertEquals("http://www.oschina.net/", selectList.get(0));
    }
New api test

@author hooy
@since 8.0
webmagic-saxon/src/test/java/us/codecraft/webmagic/selector/XpathSelectorTest.java