FilePickerProxy { public boolean isPickFileRequested(int requestCode, AssetType assetType) { return requestCode == getRequestCode(assetType); }  void openFilePicker(Fragment fragment, AssetType assetType); boolean isPickFileRequested(int requestCode, AssetType assetType); boolean isFilePicked(int resultCode); String getFilePath(Intent data);  }
@Test public void whenCheckingPickFileRequestedExpectCorrectResult() { assertTrue(filePickerProxy.isPickFileRequested(0, AssetType.PICTURE)); assertTrue(filePickerProxy.isPickFileRequested(1, AssetType.SOUND)); }