def METHOD_NAME(self, vol):
    vol.setMetadata = CountedInstanceMethod(vol.setMetadata)
    assert sc.LEGAL_VOL == vol.getLegality()
    with vol.operation():
        assert sc.ILLEGAL_VOL == vol.getLegality()
        assert 1 == vol.setMetadata.nr_calls
    assert sc.LEGAL_VOL == vol.getLegality()
    assert 2 == vol.setMetadata.nr_calls