ActivationKey key = new ActivationKey();
Owner owner = createOwner();
key.setOwner(owner);
key.setName("dd");
key.setServiceLevel("level1");
key.setReleaseVer(new Release("release1"));
activationKeyCurator.create(key);
assertNotNull(key.getId());
key = activationKeyResource.getActivationKey(key.getId());
assertNotNull(key);
key.setName("JarJarBinks");
key.setServiceLevel("level2");
key.setReleaseVer(new Release("release2"));
key = activationKeyResource.updateActivationKey(key.getId(), key);
key = activationKeyResource.getActivationKey(key.getId());
assertEquals("JarJarBinks", key.getName());
assertEquals("level2", key.getServiceLevel());
assertEquals("release2", key.getReleaseVer().getReleaseVer());