Many (most?) of the CLI system tests are missing tests of error cases.
We should add test cases for common user errors in non-trivial commands:
- CA Import (tests: incomplete chain, unspecified key alias in PKCS#12, missing key in PKCS#11 token, etc)
- CA Cert Import
- CA Init
- CryptoToken Create
The tests go into classes ending with CommandTest, for example CaImportCommandTest
You may want to create separate sub-issues for each of the tasks before starting.