{
server.setIORAddress( CORRECT_HOST, WRONG_PORT );
server.addAlternateAddress( WRONG_HOST, CORRECT_PORT );
server.addAlternateAddress( WRONG_HOST_2, WRONG_PORT );
server.addAlternateAddress( WRONG_HOST_2, WRONG_PORT );
Sample sample = server.getObject();
try
{
sample.ping (33);
fail ("TRANSIENT or TIMEOUT exception expected");
}
catch (org.omg.CORBA.TRANSIENT ex)
{
// ok - unable to resolve the address