public void deleteAll() throws AmazonClientException {
EntityManagerSimpleJPA em = (EntityManagerSimpleJPA) factory.createEntityManager();
AmazonSimpleDB db = em.getSimpleDb();
String domainName = em.getDomainName(MyTestObject.class);
db.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));
domainName = em.getDomainName(MyTestObject2.class);
db.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));
domainName = em.getDomainName(MyInheritanceObject1.class);
db.deleteDomain(new DeleteDomainRequest().withDomainName(domainName));
em.close();
}