@Test
public void testInvalidCipher() throws Exception {

  String[] args1 = {"create", "key1", "--cipher", "LJM", "--provider", 
      "jceks://file" + tmpDir + "/keystore.jceks"};
  
  int rc = 0;
  KeyShell ks = new KeyShell();
  ks.setConf(new Configuration());
  rc = ks.run(args1);
  assertEquals(-1, rc);
  assertTrue(outContent.toString().contains("key1 has not been created."));
}