}
@Test
public void testExecutionException() throws IOException {
ServerDeploymentManager sdm = new MockServerDeploymentManager(new ExecutionException(new Exception()));
DeploymentPlanBuilder builder = sdm.newDeploymentPlan();
builder = builder.add("test", createTempFile());
DeploymentPlanImpl planImpl = getDeploymentPlanImpl(builder);
safeGet(sdm, planImpl);
InputStream is = getInputStream(planImpl);
assertClosed(is);
builder = sdm.newDeploymentPlan();
builder = builder.add("test", createTempFile());
planImpl = getDeploymentPlanImpl(builder);
safeGetWithTimeout(sdm, planImpl);
is = getInputStream(planImpl);
assertClosed(is);
}