@Test(timeout=5000)
    public void inactiveSessionDelay() throws Exception {
        logTestStart();
        testedBy(ConnectionValidator.class, "scheduleMaxDelayTask");
        final int maxTimeAllowed = 500;

        // Initiate a new session
        session.send(ComposableBody.builder().build());
        StubConnection conn = cm.awaitConnection();
        AbstractBody scr = ComposableBody.builder()
                .setAttribute(Attributes.SID, "123XYZ")
                .setAttribute(Attributes.WAIT, "1")
                .setAttribute(Attributes.INACTIVITY, "1")
                .build();
        conn.sendResponse(scr);
        session.drain();

        // Now wait to see how long before we receive an empty request...
        long start = System.currentTimeMillis();
        cm.awaitConnection();
        long end = System.currentTimeMillis();
        if (end - start > maxTimeAllowed) {
            fail("Idle message took " + (end - start) + "ms to arrive.  "
                    + "Max allowed: " + maxTimeAllowed);
        }

        assertValidators(scr);
    }