public void test_chooseServerAlias(){
  init(SERVER);
  assertNull(manager.chooseServerAlias(null,null,new Socket()));
  assertNull(manager.chooseServerAlias("",null,new Socket()));
  String res=manager.chooseServerAlias(TYPE_RSA,null,null);
  assertNotNull(res);
  assertEquals("serverkey_00",res.toLowerCase());
  res=manager.chooseServerAlias(TYPE_RSA,null,new Socket());
  assertNotNull(res);
  assertEquals("serverkey_00",res.toLowerCase());
}

public void test_chooseServerAlias ( ) { init ( SERVER ) ; assertNull ( manager . chooseServerAlias ( null , null , new Socket ( ) ) ) ; assertNull ( manager . chooseServerAlias ( "" , null , new Socket ( ) ) ) ; String res = manager . chooseServerAlias ( TYPE_RSA , null , null ) ; assertNotNull ( res ) ; assertEquals ( "serverkey_00" , res . toLowerCase ( ) ) ; res = manager . chooseServerAlias ( TYPE_RSA , null , new Socket ( ) ) ; assertNotNull ( res ) ; assertEquals ( "serverkey_00" , res . toLowerCase ( ) ) ; }
x509keymanager # chooseserveralias ( string keytype , principal [ ] issuers , socket socket )
