def METHOD_NAME(self):
    data = np.random.rand(10,10)
    try:
        hv.Image(data)[...,'Non-existent']
    except Exception as e:
        if str(e) != "'Non-existent' is not an available value dimension":
            raise AssertionError("Unexpected exception.")