protected CriteriaQuery<E> criteriaQuery() {
        return this.currentSession().getCriteriaBuilder().createQuery(getEntityClass());
    }
@Test
    void createsNewCriteriaQueries() throws Exception {
        assertThat(dao.criteriaQuery())
                .isEqualTo(criteriaQuery);

        verify(session).getCriteriaBuilder();
        verify(criteriaBuilder).createQuery(String.class);
    }