assertEquals("The deployment should tell use we need bundle URL 'bundle1-1';", "http://bundle1-1", sgo.getArtifactsFromDeployment()[0].getUrl());
assertEquals("1", sgo.getCurrentVersion());
final String newVersion = runAndWaitForEvent(new Callable<String>() {
public String call() throws Exception {
return sgo.approve();
}
}, false, DeploymentVersionObject.TOPIC_ADDED, TOPIC_STATUS_CHANGED);
assertFalse("Immediately after approval, no approval is necessary.", sgo.needsApprove());
assertEquals("We expect the registration state to be Registered;", RegistrationState.Registered, sgo.getRegistrationState());