@Test
public void resolvePath() throws IOException {

  try {
    CertificateLoader.resolvePath("classpath:cer");
    fail("exception expected for unknown classpath");
  } catch (Exception ignored) {
  }
  try {
    CertificateLoader.resolvePath("file://woo");
    fail("exception expected for file uri component");
  } catch (Exception ignored) {
  }
  try {
    CertificateLoader.resolvePath("file:///woo");
    fail("exception expected for missing path");
  } catch (Exception ignored) {
  }
  Path pathC = CertificateLoader.resolvePath("classpath:certs");
  assertTrue(pathC != null);
  String fPath = "file://" + folder.newFolder().getAbsolutePath();
  Path pathF = CertificateLoader.resolvePath(fPath);
  assertTrue(pathF != null);
}