public static QueryBuilder namedQuery(final String namedQuery) {
        return new QueryBuilder() {
            protected Query makeQueryObject(EntityManager entityManager) {
                return entityManager.createNamedQuery(namedQuery);
            }

            @Override
            public String toString() {
                return "Named: " + namedQuery + getParameterDescription();
            }
        };
    }
@Test
    public void testNamedQueryBuilder() {
        QueryBuilder q = QueryBuilder.namedQuery("step1");
        assertNotNull(q);
        assertEquals("Named: step1", q.toString());
    }