Steve Ebersole commented on an issue
Hibernate ORM / Bug HHH-8593
EntityManager.refresh should throw EntityNotFoundException if the entity no longer exists in the database
https://github.com/scottmarlow/hibernate-orm/tree/refreshEntityNotFoundException contains the following test case that expects a EntityNotFoundException to be thrown from refresh if the entity is no longer in the database.

{code}
@Test
public void testEntityNotFoundException() throws Exception {
EntityManager em = getOrCreateEntityManager();
...