@Test
public void fileDoestExist() {

    try {
        new PdfFileSourceAdapter("/tmp/doesntexist.pdf:secret").getPdfFileSource();
    } catch (SejdaRuntimeException e) {
        assertThat(e.getMessage(), containsString("does not exist"));
    }
}