def METHOD_NAME(self):
    data = np.random.rand(10,10)
    try:
        hv.Raster(data)[...,'Non-existent']
    except Exception as e:
        if "\'z\' is the only selectable value dimension" not in str(e):
            raise AssertionError("Unexpected exception.")