@DataProvider (name = "like_queries_hql") public Object[][] queryProviderHQL() { Path.PathElement pathToTitle = new Path.PathElement(Book.class, String.class, "title"); return new Object[][]{ {new InfixPredicate(pathToTitle, "with%perce"), 1}, {new PrefixPredicate(pathToTitle, "titlewith%perce"), 1}, {new PostfixPredicate(pathToTitle, "with%percentage"), 1} }; }