@FixFor( "MODE-1144" )
@SuppressWarnings( "deprecation" )
@Test
public void shouldParseMagnoliaXPathQuery() throws Exception {

    String xpath = "//*[@jcr:primaryType='mgnl:content']//*[jcr:contains(., 'paragraph')]";
    Query query = session.getWorkspace().getQueryManager().createQuery(xpath, Query.XPATH);
    QueryResult result = query.execute();
    assertNotNull(result);
    assertFalse(result.getRows().hasNext());
}