ESHttpUtils { @Nullable public static String findContentText(final Node rootNode, final XPath xPath, final String expression) { final Node node = findNode(rootNode, xPath, expression); if (node == null) { return null; } return node.getTextContent(); } private  ESHttpUtils(); @Nullable static String findContentText(final Node rootNode, final XPath xPath, final String expression); @Nullable static Integer findContentInteger(final Node rootNode, final XPath xPath,
            final String expression); @Nullable static Node findNode(@NotNull final Node rootNode, @NotNull final XPath xPath,
            @NotNull final String expression); @Nullable static NodeList findNodes(@NotNull final Node rootNode, @NotNull final XPath xPath,
            @NotNull final String expression); @NotNull static Document parseDocument(@NotNull final DocumentBuilder builder,
            @NotNull final InputStream inputStream); @NotNull static XPath createXPath(@Nullable final String... values); @NotNull static DocumentBuilder createDocumentBuilder(); static String yesNo(final boolean b);  }
@Test public void testFindContentText() { final String value = ESHttpUtils.findContentText(doc, xpath, "/ns:feed/ns:entry/ns:title"); assertThat(value).isEqualTo("1@MyStreamA"); }