import java.lang.reflect.Field;
import javax.persistence.EntityManager;
+import javax.transaction.Status;
+import javax.transaction.UserTransaction;
import org.apache.wicket.IPageMap;
import org.apache.wicket.PageParameters;
public void testSmokeBehaviorFlushEntityManager() throws Exception {
WebApplicationBasePage page = new WebApplicationBasePage(mock(IPageMap.class), new PageParameters());
EntityManager entityManager = mock(EntityManager.class);
+ when(entityManager.isOpen()).thenReturn(true);
PageBehavior behavior = new FlushEntityManagerBehavior(entityManager);
page.addBehavior(behavior);
wicket.startPage(page);