public static MappingAllocator buildMappingAllocator(Map<Integer, String> idToBroker, Map<String, Integer> brokerNumMap, Map<String, Integer> brokerNumMapBeforeRemapping) {
        return new MappingAllocator(idToBroker, brokerNumMap, brokerNumMapBeforeRemapping);
    }
@Test
    public void testRemappingAllocator() {
        for (int i = 0; i < 10; i++) {
            int num = (i + 2) * 2;
            Map<String, Integer> brokerNumMap = buildBrokerNumMap(num);
            Map<String, Integer> brokerNumMapBeforeRemapping = buildBrokerNumMap(num, num);
            TopicQueueMappingUtils.MappingAllocator  allocator = TopicQueueMappingUtils.buildMappingAllocator(new HashMap<>(), brokerNumMap, brokerNumMapBeforeRemapping);
            allocator.upToNum(num * num + 1);
            Assert.assertEquals(brokerNumMapBeforeRemapping, allocator.getBrokerNumMap());
        }
    }