EntityManagerProducerProxy implements Producer<EntityManager> { @Override public Set<InjectionPoint> getInjectionPoints() { return proxied.getInjectionPoints(); } EntityManagerProducerProxy(final Producer<EntityManager> proxied); @Override EntityManager produce(final CreationalContext<EntityManager> ctx); @Override void dispose(final EntityManager instance); @Override Set<InjectionPoint> getInjectionPoints();  }
@Test public void testGetInjectionPoints() { final EntityManagerProducerProxy producer = new EntityManagerProducerProxy(delegate); producer.getInjectionPoints(); verify(delegate).getInjectionPoints(); verifyNoMoreInteractions(delegate); }