@Test
public void testLocalBCFKSProvider() throws Exception {

  Configuration conf = new Configuration();
  final Path ksPath = new Path(tmpDir.toString(), "test.bcfks");
  final String ourUrl = LocalBouncyCastleFipsKeyStoreProvider.SCHEME_NAME +
      "://file" + ksPath.toUri();
  conf.set(CredentialProviderFactory.CREDENTIAL_PROVIDER_PATH, ourUrl);
  exception.expect(IOException.class);
  exception.expectMessage("Can't create keystore");
  List<CredentialProvider> providers =
      CredentialProviderFactory.getProviders(conf);
  assertTrue("BCFKS needs additional JDK setup", providers.isEmpty());
}