new TopicBroker(1, "1-m").toJson());
this.mockConnect("meta://localhost:0");
// this.mockConnect("meta://localhost:1");�����ӵ�����һ��master
this.mockCommitOffsets(GROUP, new ArrayList<TopicPartitionRegInfo>());
this.mockLoadNullInitOffset("topic1", GROUP, new Partition("0-0"));
this.mockLoadNullInitOffset("topic1", GROUP, new Partition("0-1"));
this.mockLoadNullInitOffset("topic1", GROUP, new Partition("0-2"));
this.mockLoadNullInitOffset("topic2", GROUP, new Partition("0-0"));
// this.mockLoadNullInitOffset("topic2", GROUP, new
// Partition("1-0"));��load����һ��master�ķ���
this.mockFetchManagerRestart();
this.mockAddFetchRequest(new FetchRequest(new Broker(0, "meta://localhost:0"), 0, new TopicPartitionRegInfo(
"topic1", new Partition("0-0"), 0), 1024 * 1024));
this.mockAddFetchRequest(new FetchRequest(new Broker(0, "meta://localhost:0"), 0, new TopicPartitionRegInfo(
"topic1", new Partition("0-1"), 0), 1024 * 1024));
this.mockAddFetchRequest(new FetchRequest(new Broker(0, "meta://localhost:0"), 0, new TopicPartitionRegInfo(
"topic1", new Partition("0-2"), 0), 1024 * 1024));
this.mockAddFetchRequest(new FetchRequest(new Broker(0, "meta://localhost:0"), 0, new TopicPartitionRegInfo(
"topic2", new Partition("0-0"), 0), 1024 * 1024));
// this.mockAddFetchRequest(new FetchRequest(new Broker(1,
// "meta://localhost:1"), 0, new TopicPartitionRegInfo(
// "topic2", new Partition("1-0"), 0), 1024 * 1024));��������һ��masterץȡ��Ϣ
this.mocksControl.replay();