@Test
public void testValidFile() {

    File file = mock(File.class);
    when(file.getName()).thenReturn("name");
    when(file.isFile()).thenReturn(Boolean.TRUE);
    PdfFileSource.newInstanceNoPassword(file);
}