def METHOD_NAME(**properties):
    """Return a coroutine that creates a mock agreement with the given properties."""
    async def mock_details():
        return mock.MagicMock()
    async def mock_confirm():
        return mock.MagicMock()
    async def create_agreement():
        METHOD_NAME = mock.MagicMock(**properties)
        METHOD_NAME.get_details = mock_details
        METHOD_NAME.confirm = mock_confirm
        return METHOD_NAME
    return create_agreement