@@ -0,0 +1,936 @@
+package io.mandrel.data.content.selector;%0A%0Aimport io.mandrel.data.content.selector.Selector.Instance;%0Aimport io.mandrel.http.WebPage;%0A%0Aimport java.net.MalformedURLException;%0Aimport java.net.URL;%0Aimport java.util.List;%0A%0Aimport org.assertj.core.api.Assertions;%0Aimport org.junit.Test;%0A%0Aimport us.codecraft.xsoup.xevaluator.XElement;%0A%0Apublic class XpathSelectorTest %7B%0A%0A%09@Test%0A%09public void test() throws MalformedURLException %7B%0A%0A%09%09XpathSelector selector = new XpathSelector();%0A%0A%09%09byte%5B%5D data = %22%3Ca href='/test'%3E%C3%A9patant%3C/a%3E%22.getBytes();%0A%09%09WebPage webPage = new WebPage().setUrl(new URL(%22http://localhost%22));%0A%09%09Instance%3CXElement%3E instance = selector.init(webPage, data, false);%0A%0A%09%09List%3CString%3E results = instance.select(%22//a/@href%22, DataConverter.BODY);%0A%09%09Assertions.assertThat(results).containsExactly(%22/test%22);%0A%0A%09%09results = instance.select(%22//a/text()%22, DataConverter.BODY);%0A%09%09Assertions.assertThat(results).containsExactly(%22%C3%A9patant%22);%0A%09%7D%0A%7D%0A

Update tests