### Question:
NodePreparer { public void prepareNodeForUndeployment(String instanceId) throws NodeNotPreparedException { UndeploymentPreparerInvokerTask task = new UndeploymentPreparerInvokerTask(instanceId); Future<String> future = singleThreadExecutor.submit(task); checkFuture(future); } NodePreparer(CloudNode node); String prepareNodeForDeployment(String packageUri, String cookbookTemplateName); void prepareNodeForUndeployment(String instanceId);  }### Answer:
@Test public void shouldRunUndeploymentPrepareScript() throws Exception { final String instanceId = "1111111111-11111111-111111111-11111111"; final String expectedCommand = ". chef-solo/prepare_undeployment.sh " + instanceId; NodePreparer preparer = new NodePreparer(node); preparer.sshWaiter = waiter; preparer.prepareNodeForUndeployment(instanceId); verify(ssh).runCommand(expectedCommand); }