public void testKeyAgreementSpi01() throws InvalidKeyException,
ShortBufferException, NoSuchAlgorithmException,
InvalidAlgorithmParameterException {
KeyAgreementSpi kaSpi = new MyKeyAgreementSpi();
assertNull("Not null result", kaSpi.engineDoPhase(null, true));
try {
kaSpi.engineDoPhase(null, false);
fail("IllegalStateException must be thrown");
} catch (IllegalStateException e) {
}