@Test public void testEntityManagerSetter() { EntityManager entityManager = context.mock(EntityManager.class); QueryOptimizer optimizer = new QueryOptimizer(); optimizer.setEntityManager(entityManager); }
@PersistenceContext public void setEntityManager(final EntityManager newEntityManager) { this.entityManager = newEntityManager; }
QueryOptimizer { @PersistenceContext public void setEntityManager(final EntityManager newEntityManager) { this.entityManager = newEntityManager; } }
QueryOptimizer { @PersistenceContext public void setEntityManager(final EntityManager newEntityManager) { this.entityManager = newEntityManager; }  }
QueryOptimizer { @PersistenceContext public void setEntityManager(final EntityManager newEntityManager) { this.entityManager = newEntityManager; }  @PersistenceContext void setEntityManager(final EntityManager newEntityManager); long determineCollectionSize(final Collection<?> collection); }
QueryOptimizer { @PersistenceContext public void setEntityManager(final EntityManager newEntityManager) { this.entityManager = newEntityManager; }  @PersistenceContext void setEntityManager(final EntityManager newEntityManager); long determineCollectionSize(final Collection<?> collection);  }