public void testSetPublicKey2() throws Exception {
  Identity i2=new IdentityStub("testSetPublicKey2_2",IdentityScope.getSystemScope());
  new PublicKeyStub("kkk","testSetPublicKey2",new byte[]{1,2,3,4,5});
  try {
    i2.setPublicKey(null);
  }
 catch (  KeyManagementException ok) {
  }
}

public void testSetPublicKey2 ( ) throws Exception { Identity i2 = new IdentityStub ( "testSetPublicKey2_2" , IdentityScope . getSystemScope ( ) ) ; new PublicKeyStub ( "kkk" , "testSetPublicKey2" , new byte [ ] { 1 , 2 , 3 , 4 , 5 } ) ; try { i2 . setPublicKey ( null ) ; } catch ( KeyManagementException ok ) { } }
verify identity . setpublickey ( ) throws keymanagementexception if key is invalid
