### Question:
PdfDocumentDescriptor { public PdfFileSource toPdfFileSource() { try { return PdfFileSource.newInstanceWithPassword(file, password); } catch (IllegalArgumentException e) { throw new ConversionException( DefaultI18nContext.getInstance().i18n("File \"{0}\" does not exist or is invalid", file.getName()), e); } } private  PdfDocumentDescriptor(File file, String password); String getFileName(); PdfFileSource toPdfFileSource(); String getInformation(String key); void setInformationDictionary(Map<String, String> info); void putInformation(String key, String value); void pages(int newValue); ObservableAtomicReference<PdfDescriptorLoadingStatus> loadingStatus(); ObservableAtomicReference<Integer> pages(); void moveStatusTo(PdfDescriptorLoadingStatus destination); String getPassword(); void setPassword(String password); boolean hasPassword(); String getVersionString(); PdfVersion getVersion(); void setVersion(PdfVersion version); File getFile(); void setValidBookmarksLevels(Set<Integer> levels); SortedSet<Integer> getValidBookmarksLevels(); boolean hasReferences(); boolean release(); void releaseAll(); PdfDocumentDescriptor retain(); static PdfDocumentDescriptor newDescriptor(File file, String password); static PdfDocumentDescriptor newDescriptorNoPassword(File file);  }### Answer:
@Test(expected = ConversionException.class) public void FailToPdfSource() { when(file.isFile()).thenReturn(Boolean.FALSE); victim.toPdfFileSource(); }