JPA implementation
Test cases