@Test
public void testClientServerInactivity() throws Exception
{
long maxInactivityPeriod = 4000;
bayeux.addExtension(new ActivityExtension(ActivityExtension.Activity.CLIENT_SERVER, maxInactivityPeriod));
final BayeuxClient client = newBayeuxClient();
client.getChannel(Channel.META_HANDSHAKE).addListener(new ClientSessionChannel.MessageListener()
{
public void onMessage(ClientSessionChannel channel, Message message)