public boolean isExpired() {
        return nextVisibleTime <= System.currentTimeMillis();
    }
@Test
    public void testIsExpired() {
        long startOffset = 1000L;
        long retrieveTime = System.currentTimeMillis();
        long invisibleTime = 1000L;
        int reviveQueueId = 1;
        String topicType = "NORMAL";
        String brokerName = "BrokerA";
        int queueId = 2;
        long offset = 2000L;
        long commitLogOffset = 3000L;
        long pastTime = System.currentTimeMillis() - 1000L;
        ReceiptHandle receiptHandle = new ReceiptHandle(startOffset, retrieveTime, invisibleTime, pastTime, reviveQueueId, topicType, brokerName, queueId, offset, commitLogOffset, "");

        boolean isExpired = receiptHandle.isExpired();

        assertTrue(isExpired);
    }