@Test
public void importUriWithNullStream() throws Exception {

    final Uri uri = mock(Uri.class);
    when(contentResolver.openInputStream(uri)).thenReturn(null);
    importProcessor.process(uri)
            .test()
            .assertError(FileNotFoundException.class);
}