testing Java EE persistence