DynamicWorkflowDelegate extends Delegate { @Override public void applyDelegate(Config config) { throw new UnsupportedOperationException("DynamicWorkflow is currently not supported."); } DynamicWorkflowDelegate(); Boolean isDynamicWorkflow(); void setDynamicWorkflow(boolean dynamicWorkflow); @Override void applyDelegate(Config config);  }
@Test(expected = UnsupportedOperationException.class) public void testApplyDelegate() { Config config = Config.createConfig(); config.setDynamicWorkflow(false); args = new String[1]; args[0] = "-dynamic_workflow"; jcommander.parse(args); delegate.applyDelegate(config); assertTrue(config.isDynamicWorkflow()); }
@Test(expected = UnsupportedOperationException.class) public void testNothingSetNothingChanges() { Config config = Config.createConfig(); Config config2 = Config.createConfig(); delegate.applyDelegate(config); assertTrue(EqualsBuilder.reflectionEquals(config, config2, "keyStore", "ourCertificate")); }