octopus.end() has been deprecated, replaced with OctopusFactory.endOctopus(octopus).
Octopus job is more strict so add a JobDescription during testing.