DynamicWorkflowDelegate extends Delegate { public Boolean isDynamicWorkflow() { 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 testIsDynamicWorkflow() { args = new String[1]; args[0] = "-dynamic_workflow"; assertTrue(delegate.isDynamicWorkflow() == null); jcommander.parse(args); assertTrue(delegate.isDynamicWorkflow()); }