// entity manager because they share the same underlying connection object.
// When trace is on, you'll see the SOAP requests and responses on stdout.
connector.getConnection().getConfig().setTraceMessage(true);
connector.getConnection().getConfig().setPrettyPrintXml(true);
MyEntity entity = new MyEntity();
entity.setName("A Test Entity");
entityService.save(entity);
assertNotNull(entity.getId());
entityId = entity.getId();
entity = entityService.findEntity(entityId);
assertEquals("A Test Entity", entity.getName());
entity.setName("A Modified Test Entity");
entityService.save(entity);
entity = entityService.findEntity(entityId);
assertEquals("A Modified Test Entity",entity.getName());
entityService.delete(entityId);
entity = entityService.findEntity(entityId);