TypedQuery<Tuple> query = em.createQuery("SELECT u.firstname from User u", Tuple.class);
List<Tuple> result = query.getResultList();
List<TupleElement<?>> elements = result.get(0).getElements();
assertThat(elements, hasSize(1));
assertThat(elements.get(0).getAlias(), is(nullValue()));