### Question:
ParamSpace implements Serializable { public List<ParameterDimension<?>> get(String name) { return getDimensionMap().get(name); }  Map<String, List<ParameterDimension<?>>> getDimensionMap(); @Override String toString(); ParamSpace add(String name, ParameterDimension<?> dimension); ParamSpace add(String name, List<A> values); ParamSpace add(String name, List<A> values, List<ParamSpace> subSpaces); ParamSpace add(String name, List<A> values, ParamSpace subSpace); ParamSpace add(String name, Distribution<A> values); ParamSpace add(String name, Distribution<A> values, List<ParamSpace> subSpaces); ParamSpace add(String name, Distribution<A> values, ParamSpace subSpace); List<ParameterDimension<?>> get(String name);  }### Answer:
@Test public void testAddAndGetForListOfValues() { List<ParameterDimension<?>> valuesOut = wParams.get(WarpingDistanceMeasure.WINDOW_SIZE_FLAG); Object value = valuesOut.get(0).getValues(); Assert.assertEquals(value, wParamValues); }
@Test public void testAddAndGetForDistributionOfValues() { List<ParameterDimension<?>> dimensions = lParams.get(LCSSDistance.EPSILON_FLAG); for(ParameterDimension<?> dimension : dimensions) { Object values = dimension.getValues(); Assert.assertEquals(values, eDist); } dimensions = lParams.get(LCSSDistance.WINDOW_SIZE_FLAG); for(ParameterDimension<?> dimension : dimensions) { Object values = dimension.getValues(); Assert.assertEquals(values, dDist); } }