@Test(expected = AvailablePartitionNumException.class)
public void testGetPartition_configPartitionsChanged() throws MetaClientException {
// �������÷����˱仯,���÷�������,ѡ������ķ�����0-0������д
Map<String, List<Partition>> map = new HashMap<String, List<Partition>>();
map.put(testTopic, Arrays.asList(new Partition("1-0"), new Partition("1-1"), new Partition("2-0")));
this.selector.setConfigPartitions(map);
Message message = this.createDefaultMessage();
Partition partition =
this.selector.getPartition(message.getTopic(),
Arrays.asList(new Partition("0-0"), new Partition("1-0"), new Partition("2-0")), message);
Assert.assertEquals(new Partition("0-0"), partition);
}