The biggest difference is that an argumentcaptor is used for the ClipboardManager, rather than inspecting the primary clip. Diff: https://diff.googleplex.com/#key=X1WHfEzPhfuY Test: atest -c SerialNumberPreferenceControllerTest Change-Id: I84c2abd0d53dde22c90b0967f6884bc590181f7c