public function testHideLegend()
{
$pm = PaletteManipulator::create()->addLegend('foobar_legend', '', PaletteManipulator::POSITION_APPEND, true)->addField(['foo', 'bar'], 'foobar_legend', PaletteManipulator::POSITION_APPEND);
$this->assertEquals('{name_legend},name;{foobar_legend:hide},foo,bar', $pm->applyToString('{name_legend},name'));
}