def METHOD_NAME(self):
    overlay = Curve(range(10), label='A') * Curve(range(10), label='B')
    plot = mpl_renderer.get_plot(overlay)
    legend = plot.handles['legend']
    legend_labels = [l.get_text() for l in legend.texts]
    self.assertEqual(legend_labels, ['A', 'B'])