### Question:
PartitionExt extends Partition { public PartitionExt(final FlowCtrlRuleHandler groupFlowCtrlRuleHandler, final FlowCtrlRuleHandler defFlowCtrlRuleHandler, final BrokerInfo broker, final String topic, final int partitionId) { super(broker, topic, partitionId); this.groupFlowCtrlRuleHandler = groupFlowCtrlRuleHandler; this.defFlowCtrlRuleHandler = defFlowCtrlRuleHandler; } PartitionExt(final FlowCtrlRuleHandler groupFlowCtrlRuleHandler,
                        final FlowCtrlRuleHandler defFlowCtrlRuleHandler,
                        final BrokerInfo broker, final String topic, final int partitionId); long procConsumeResult(boolean isFilterConsume); long procConsumeResult(boolean isFilterConsume, int reqProcType, int errCode,
                                  int msgSize, boolean isReqEscLimit, long rsplimitDlt,
                                  long lastDataDlt, boolean isRRequireSlow); long getCurDataDlt(); FlowCtrlResult getCurFlowCtrlVal(); long getRecvMsgInMin(); long getLimitMsgInSec(); long getLastRptTIme(); int getReqProcType(); int getErrCode(); boolean isEscLimit(); int getMsgSize(); long getLimitDlt(); boolean isLastPackConsumed(); void setLastPackConsumed(boolean lastPackConsumed); boolean getAndResetLastPackConsumed(); void setPullTempData(int reqProcType, int errCode,
                                boolean isEscLimit, int msgSize,
                                long limitDlt, long curDataDlt,
                                boolean isRequireSlow); void clearPullTempData(); long getNextLimitUpdateTime(); void setNextLimitUpdateTime(long nextLimitUpdateTime); long getCurAllowedMsgSize(); void setCurAllowedMsgSize(int curAllowedMsgSize); long getNextStatTime(); void setNextStatTime(long nextStatTime); long getLastGetTime(); void setLastGetTime(long lastGetTime); int getRecvMsgSize(); void setRecvMsgSize(int recvMsgSize); long getLastDataRdDlt(); void setLastDataRdDlt(long lastDataRdDlt); int getTotalRcvZeroCount(); void setTotalRcvZeroCount(int totalRcvZeroCount);  }### Answer:
@Test public void testPartitionExt() { FlowCtrlRuleHandler groupFlowCtrlRuleHandler = new FlowCtrlRuleHandler(false); FlowCtrlRuleHandler defFlowCtrlRuleHandler = new FlowCtrlRuleHandler(true); PartitionExt partition = new PartitionExt( groupFlowCtrlRuleHandler, defFlowCtrlRuleHandler, new BrokerInfo(1, "192.168.1.1", 18080), "test", 1); partition.setLastPackConsumed(true); assertTrue(partition.isLastPackConsumed()); partition.setLastPackConsumed(false); assertFalse(partition.isLastPackConsumed()); partition.getAndResetLastPackConsumed(); assertFalse(partition.isLastPackConsumed()); }