FilePickerProxy { public boolean isFilePicked(int resultCode) { return resultCode == FilePickerActivity.RESULT_OK; }  void openFilePicker(Fragment fragment, AssetType assetType); boolean isPickFileRequested(int requestCode, AssetType assetType); boolean isFilePicked(int resultCode); String getFilePath(Intent data);  }
@Test public void whenCheckingFilePickedWithOkExpectTrue() { assertTrue(filePickerProxy.isFilePicked(FilePickerActivity.RESULT_OK)); }
@Test public void whenCheckingFilePickedWithCanceledExpectFalse() { assertFalse(filePickerProxy.isFilePicked(FilePickerActivity.RESULT_CANCELED)); }