// Test connection.
assertEquals("abc", client.invoke("abc"));
log.info("connection is good");
// Test lease behavior.
MicroRemoteClientInvoker clientInvoker = (MicroRemoteClientInvoker) client.getInvoker();
clientInvoker.terminateLease(client.getSessionId(), 0);
TestLeasePinger leasePinger = new TestLeasePinger(clientInvoker, clientInvoker.getSessionId(), LEASE_PERIOD);
leasePinger.setLeasePingerId(new GUID().toString());
leasePinger.addClient(client.getSessionId(), client.getConfiguration(), LEASE_PERIOD);
leasePinger.startPing();
Thread.sleep(LEASE_PERIOD * 4);
assertFalse(listener.called);