### Question:
HibernateConnectionExtractor implements JpaConnectionExtractor { @Override public Connection getConnectionFromEntityManager(final EntityManager entityManager) { return entityManager.unwrap(SessionImplementor.class).connection(); }  @Override Connection getConnectionFromEntityManager(final EntityManager entityManager);  }### Answer:
@Test public void assertGetConnectionFromEntityManager() { Collection<JpaConnectionExtractor> extractors = NewInstanceServiceLoader.newServiceInstances(JpaConnectionExtractor.class); assertThat(extractors.size(), is(1)); assertThat(extractors.iterator().next().getConnectionFromEntityManager(entityManager), is(connection)); }