Making JpaContext class testable