assertNotNull(virtualSchema);
SyncopeUser owner = userDAO.find(3L);
assertNotNull("did not get expected user", owner);
UVirAttr virtualAttribute = new UVirAttr();
virtualAttribute.setOwner(owner);
virtualAttribute.setVirtualSchema(virtualSchema);
virtualAttribute = virAttrDAO.save(virtualAttribute);
UVirAttr actual = virAttrDAO.find(virtualAttribute.getId(), UVirAttr.class);
assertNotNull("expected save to work", actual);
assertEquals(virtualAttribute, actual);
}