@Test
public void testTransientProviderWarning() throws Exception {

  String[] args1 = {"create", "key1", "--cipher", "AES", "--provider", 
    "user:///"};
  
  int rc = 0;
  KeyShell ks = new KeyShell();
  ks.setConf(new Configuration());
  rc = ks.run(args1);
  assertEquals(0, rc);
  assertTrue(outContent.toString().contains("WARNING: you are modifying a " +
  		"transient provider."));
}