protected Query<E> namedTypedQuery(String queryName) throws HibernateException {
        return currentSession().createNamedQuery(queryName, getEntityClass());
    }
@Test
    void getsNamedTypedQueries() throws Exception {
        assertThat(dao.namedTypedQuery("query-name"))
            .isEqualTo(query);

        verify(session).createNamedQuery("query-name", String.class);
    }