issue #10 - add issue-10 test
move common part to abstract, split test for eclipselink and hibernate
Merge pull request #11 from divinespear/issue-10

close #10