assertEquals(defaultSingletonBeanAccessTimeout, Integer.valueOf(7777));
}
@Test(dependsOnMethods = { "initialDiscoveryTest" })
public void testDeploymentAction() throws Exception {
BundleHandoverFacet handoverFacet = getHandoverFacet();
BundleHandoverContext.Builder contextBuilder = new BundleHandoverContext.Builder() //
.setRevert(false);
Map<String, String> params = new HashMap<String, String>();
params.put("serverGroup", "main-server-group");
BundleHandoverRequest.Builder requestBuilder = new BundleHandoverRequest.Builder() //
.setContent(getClass().getClassLoader().getResourceAsStream("itest/javaee6-test-app.war")) //
.setFilename("javaee6-test-app.war") //
.setAction("deployment") //
.setParams(params) //
.setContext(contextBuilder.create());
BundleHandoverResponse response = handoverFacet.handleContent(requestBuilder.createBundleHandoverRequest());
assertTrue(response.isSuccess(), getFailureMessage(response));
Address managedServerDeploymentAddress = new Address();
managedServerDeploymentAddress.add("host", "master");