Port of JASPIC tests from
https://github.com/arjantijms/jaspic-capabilities-test