public function collectionWithScalarTypes()
{
return array_map(function ($cassandraType) {
$listType = Type::collection($cassandraType[0]);
$list = $listType->create();
foreach ($cassandraType[1] as $value) {
$list->add($value);
}
return array($listType, $list);
}, $this->scalarCassandraTypes());
}