@Test
public void haveAllPermissionsYes() {

    when(mActivity.checkSelfPermission(PERM0)).thenReturn(PackageManager.PERMISSION_GRANTED);
    when(mActivity.checkSelfPermission(PERM1)).thenReturn(PackageManager.PERMISSION_GRANTED);
    assertTrue(mManager.haveAllPermissions());
}