def METHOD_NAME(cls):
    cls.mock.start()
    cls.client = boto3.client("dynamodb", "us-east-1")
    cls.client.create_table(
        TableName="messages",
        KeySchema=[{"AttributeName": "id", "KeyType": "HASH"}],
        AttributeDefinitions=[{"AttributeName": "id", "AttributeType": "S"}],
        ProvisionedThroughput={"ReadCapacityUnits": 1, "WriteCapacityUnits": 5},
    )
    cls.item1 = {"id": {"S": "msg1"}, "body": {"S": "some text"}}
    cls.item2 = {"id": {"S": "msg2"}, "body": {"S": "n/a"}, "unique": {"S": "key"}}
    cls.client.put_item(TableName="messages", Item=cls.item1)
    cls.client.put_item(TableName="messages", Item=cls.item2)