Learning Java Persistence API (JPA) with learning tests