public boolean hasTempMessage() {
        try {
            this.treeMapLock.readLock().lockInterruptibly();
            try {
                return !this.msgTreeMap.isEmpty();
            } finally {
                this.treeMapLock.readLock().unlock();
            }
        } catch (InterruptedException e) {
        }

        return true;
    }
@Test
    public void testHasTempMessage() {
        ProcessQueue processQueue = createProcessQueue();
        assertFalse(processQueue.hasTempMessage());
    }