Correct that you don't need an app server to test JPA, but you do need it to do the injection if the entity manager is injected.