async def METHOD_NAME(self, mock_connect, mock_update_endpoints):
    c = Controller()
    await c.connect(endpoint='0.1.2.3:4566', bakery_client='bakery')
    mock_connect.assert_called_once_with(endpoint='0.1.2.3:4566',
                                         bakery_client='bakery')
    mock_update_endpoints.assert_called_once_with()