def METHOD_NAME(self):
    with TempSubvolumes() as ts:
        subvol = self._setup_subvol(ts)
        with self.assertRaisesRegex(
            RuntimeError,
            "Key `key` is already installed and must be removed",
        ):
            item = MetaKeyValueStoreItem(
                key="key",
                value="value",
            )
            item.build(subvol, DUMMY_LAYER_OPTS)
            item.build(subvol, DUMMY_LAYER_OPTS)