def METHOD_NAME(self):
    """Check that an exception is raised if a realization
    coordinate already exists."""
    self.cube.add_aux_coord(AuxCoord(0, "realization"))
    msg = r"Cannot rebadge percentile coordinate to realization.*"
    with self.assertRaisesRegex(InvalidCubeError, msg):
        Plugin().process(self.cube)