@SuppressWarnings("unchecked")
    protected E get(Object id) {
        return (E) currentSession().get(entityClass, requireNonNull(id));
    }
@Test
    void getsEntitiesById() throws Exception {
        when(session.get(String.class, 200)).thenReturn("woo!");

        assertThat(dao.get(200))
                .isEqualTo("woo!");

        verify(session).get(String.class, 200);
    }