options.setHa(ha);
options.setExtraClasspath(cp);
options.setRedeploy(true);
options.setRedeployGracePeriod(gracePeriod);
options.setRedeployScanPeriod(scanPeriod);
JsonObject json = options.toJson();
DeploymentOptions copy = new DeploymentOptions(json);
assertEquals(worker, copy.isWorker());
assertEquals(multiThreaded, copy.isMultiThreaded());
assertEquals(isolationGroup, copy.getIsolationGroup());
assertEquals("bar", copy.getConfig().getString("foo"));