@Test
public void parameters() {
Map<String, Object> params = ImmutableMap.<String, Object>of("foo", "FOO", "bar", 123d);
Scenario scenario = SimulationUtils.createScenarioFromDsl("src/test/groovy/ParametersTest.groovy", params);
assertNotNull(scenario);
ScenarioDefinition scenarioDefinition = scenario.createDefinition();
Map<DistinctMarketDataSelector, FunctionParameters> definitionMap = scenarioDefinition.getDefinitionMap();
PointSelector selector = new PointSelector(null, Sets.newHashSet(ExternalId.of("SCHEME", "FOO")), null, null, null, null, null);
assertTrue(definitionMap.containsKey(selector));
SimpleFunctionParameters functionParameters = (SimpleFunctionParameters) definitionMap.get(selector);
CompositeStructureManipulator<?> composite = functionParameters.getValue(StructureManipulationFunction.EXPECTED_PARAMETER_NAME);
StructureManipulator<?> manipulator = composite.getManipulators().get(0);