integration test for JPA based chunking