@Test
public void shouldNotConfirmPermissionWhenUserDoesNotConfirm() throws Exception {

  Permission permission = getPermission();
  RequestPermissionInteractor.Params params =
      RequestPermissionInteractor.Params.forPermission(permission);
  when(mockPermissionActionProvider.request(permission)).thenReturn(Single.just(false));
  Single<Boolean> reactiveStream = requestPermissionInteractor.buildReactiveStream(params);
  assertThat(reactiveStream).isNotNull();
  TestObserver<Boolean> testObserver = reactiveStream.test();
  testObserver.assertNoErrors();
  testObserver.assertValue(false);
  testObserver.assertComplete();
}