### Question:
MesosTaskManagerParameters { public List<Protos.Volume> containerVolumes() { return containerVolumes; } MesosTaskManagerParameters(
			double cpus,
			int gpus,
			int disk,
			ContainerType containerType,
			Option<String> containerImageName,
			ContaineredTaskManagerParameters containeredParameters,
			List<Protos.Volume> containerVolumes,
			List<Protos.Parameter> dockerParameters,
			boolean dockerForcePullImage,
			List<ConstraintEvaluator> constraints,
			String command,
			Option<String> bootstrapCommand,
			Option<String> taskManagerHostname,
			List<String> uris); double cpus(); int gpus(); int disk(); ContainerType containerType(); Option<String> containerImageName(); ContaineredTaskManagerParameters containeredParameters(); List<Protos.Volume> containerVolumes(); List<Protos.Parameter> dockerParameters(); boolean dockerForcePullImage(); List<ConstraintEvaluator> constraints(); Option<String> getTaskManagerHostname(); String command(); Option<String> bootstrapCommand(); List<String> uris(); @Override String toString(); static MesosTaskManagerParameters create(Configuration flinkConfig); static List<Protos.Volume> buildVolumes(Option<String> containerVolumes); static List<Protos.Parameter> buildDockerParameters(Option<String> dockerParameters); static List<String> buildUris(Option<String> uris); static final Pattern TASK_ID_PATTERN; static final ConfigOption<Integer> MESOS_RM_TASKS_SLOTS; static final ConfigOption<Integer> MESOS_RM_TASKS_MEMORY_MB; static final ConfigOption<Integer> MESOS_RM_TASKS_DISK_MB; static final ConfigOption<Double> MESOS_RM_TASKS_CPUS; static final ConfigOption<Integer> MESOS_RM_TASKS_GPUS; static final ConfigOption<String> MESOS_RM_CONTAINER_TYPE; static final ConfigOption<String> MESOS_RM_CONTAINER_IMAGE_NAME; static final ConfigOption<String> MESOS_TM_HOSTNAME; static final ConfigOption<String> MESOS_TM_CMD; static final ConfigOption<String> MESOS_TM_BOOTSTRAP_CMD; static final ConfigOption<String> MESOS_TM_URIS; static final ConfigOption<String> MESOS_RM_CONTAINER_VOLUMES; static final ConfigOption<String> MESOS_RM_CONTAINER_DOCKER_PARAMETERS; static final ConfigOption<Boolean> MESOS_RM_CONTAINER_DOCKER_FORCE_PULL_IMAGE; static final ConfigOption<String> MESOS_CONSTRAINTS_HARD_HOSTATTR; static final String MESOS_RESOURCEMANAGER_TASKS_CONTAINER_TYPE_MESOS; static final String MESOS_RESOURCEMANAGER_TASKS_CONTAINER_TYPE_DOCKER; }### Answer:
@Test public void testContainerVolumes() throws Exception { Configuration config = new Configuration(); config.setString(MesosTaskManagerParameters.MESOS_RM_CONTAINER_VOLUMES, "/host/path:/container/path:ro"); MesosTaskManagerParameters params = MesosTaskManagerParameters.create(config); assertEquals(1, params.containerVolumes().size()); assertEquals("/container/path", params.containerVolumes().get(0).getContainerPath()); assertEquals("/host/path", params.containerVolumes().get(0).getHostPath()); assertEquals(Protos.Volume.Mode.RO, params.containerVolumes().get(0).getMode()); }