### Question:
InstanceDeploymentPreparer { public void prepareDeployment() throws PrepareDeploymentFailedException { runDeploymentPrepare(); scheduleHandler(); } InstanceDeploymentPreparer(DeployableServiceSpec newSpec, DeployableService service, CloudNode node); void prepareDeployment();  }### Answer:
@Test public void shouldRunDeploymentPrepareOnNodeAndAddHandler() throws Exception { DeployableServiceSpec spec = models.getAirlineSpec(); DeployableService airlineService = models.getAirlineService(); InstanceDeploymentPreparer instanceDeploymentPreparer = new InstanceDeploymentPreparer(spec, airlineService, node); instanceDeploymentPreparer.prepareDeployment(); verify(nodePreparer).prepareNodeForDeployment(spec.getPackageUri(), "jar"); verify(nodeUpdater).addHandler(any(InstanceCreatorUpdateHandler.class)); }