public static BrokerContainer startBrokerContainer(BrokerContainer brokerContainer) {
        try {

            brokerContainer.start();

            String tip = "The broker container boot success. serializeType=" + RemotingCommand.getSerializeTypeConfigInThisServer();

            if (null != brokerContainer.getBrokerContainerConfig().getNamesrvAddr()) {
                tip += " and name server is " + brokerContainer.getBrokerContainerConfig().getNamesrvAddr();
            }

            log.info(tip);
            System.out.printf("%s%n", tip);
            return brokerContainer;
        } catch (Throwable e) {
            e.printStackTrace();
            System.exit(-1);
        }

        return null;
    }
@Test
    public void testStartBrokerContainer() {
        BrokerContainer brokerContainer = BrokerContainerStartup.startBrokerContainer(
            BrokerContainerStartup.createBrokerContainer(Arrays.array("-c", brokerContainerConfigPath)));
        assertThat(brokerContainer).isNotNull();
        List<BrokerController> brokers = BrokerContainerStartup.createAndStartBrokers(brokerContainer);
        assertThat(brokers.size()).isEqualTo(1);

        brokerContainer.shutdown();
        assertThat(brokerContainer.getBrokerControllers().size()).isEqualTo(0);
    }