Connection mock should return bool value.