@Test
public void obtainPermission() {

    when(mActivity.checkSelfPermission(PERM0)).thenReturn(PackageManager.PERMISSION_GRANTED);
    when(mActivity.checkSelfPermission(PERM1)).thenReturn(PackageManager.PERMISSION_DENIED);
    mManager.obtainPermission();
    verify(mActivity).requestPermissions(REQUIRED_PERMS, REQUEST_CODE);
}