@Test
public void testScriptPathNotSpecified() throws Exception {

  if (!Shell.WINDOWS) {
    return;
  }
  ShellDecryptionKeyProvider provider = new ShellDecryptionKeyProvider();
  Configuration conf = new Configuration();
  String account = "testacct";
  String key = "key";
  conf.set(ConfigurationKeys.FS_AZURE_ACCOUNT_KEY_PROPERTY_NAME + account, key);
  try {
    provider.getStorageAccountKey(account, conf);
    Assert
        .fail("fs.azure.shellkeyprovider.script is not specified, we should throw");
  } catch (KeyProviderException e) {
    LOG.info("Received an expected exception: " + e.getMessage());
  }
}