new LocalOffsetStorage(ResourceUtils.getResourceAsFile("oldVersion_meta_offsets").getAbsolutePath());
final String group = "test-grp";
final String topic = "test-topic";
Partition partition1 = new Partition("100-0");
Partition partition2 = new Partition("101-0");
TopicPartitionRegInfo info = offsetStorage.load(topic, group, partition1);
assertEquals(topic, info.getTopic());
assertEquals(partition1, info.getPartition());
assertEquals(0, info.getOffset().get());
// �����⼸��ֵ�����ļ�����û��,���ǰ���Ĭ�ϵ�
assertEquals(true, info.getPartition().isAutoAck());
assertEquals(true, info.getPartition().isAcked());
assertEquals(false, info.getPartition().isRollback());
TopicPartitionRegInfo info2 = offsetStorage.load(topic, group, partition2);
assertEquals(topic, info2.getTopic());
assertEquals(partition2, info2.getPartition());
assertEquals(130835445, info2.getOffset().get());
assertEquals(true, info2.getPartition().isAutoAck());
assertEquals(true, info2.getPartition().isAcked());
assertEquals(false, info2.getPartition().isRollback());
}