Create a new project, add maven dependencies to pom.xml and create persistence.xml
Create first class MySingleton
Create second class, TransactionTester1
Create third class TransactionTester2, add right methods, annotations etc.