I'm trying to send sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED) to a view, and it's working fine when I have talkback enabled on my device, but I need to write a unit test for that line.
I have tried with view.isAccessibilityFocused but this property is always false, I suspect because I don't have any accessibility service running on the test.
I'm using Roboelectric.