@Test
public void testUriErrors() throws Exception {

  Configuration conf = new Configuration();
  conf.set(KeyProviderFactory.KEY_PROVIDER_PATH, "unkn@own:/x/y");
  try {
    List<KeyProvider> providers = KeyProviderFactory.getProviders(conf);
    assertTrue("should throw!", false);
  } catch (IOException e) {
    assertEquals("Bad configuration of " +
        KeyProviderFactory.KEY_PROVIDER_PATH +
        " at unkn@own:/x/y", e.getMessage());
  }
}