### Question:
TubeMultiSessionFactory implements MessageSessionFactory { public TubeMultiSessionFactory(final TubeClientConfig tubeClientConfig) throws TubeClientException { RpcConfig config = TubeClientConfigUtils.getRpcConfigByClientConfig(tubeClientConfig, false); clientFactory.configure(config); baseSessionFactory = new TubeBaseSessionFactory(clientFactory, tubeClientConfig); } TubeMultiSessionFactory(final TubeClientConfig tubeClientConfig); @Override void shutdown(); @Override void removeClient(final T client); @Override MessageProducer createProducer(); @Override PushMessageConsumer createPushConsumer(final ConsumerConfig consumerConfig); @Override PullMessageConsumer createPullConsumer(ConsumerConfig consumerConfig);  }### Answer:
@Test public void testTubeMultiSessionFactory() throws Exception { TubeClientConfig config = mock(TubeClientConfig.class); when(config.getRpcConnProcesserCnt()).thenReturn(1); when(config.getRpcRspCallBackThreadCnt()).thenReturn(1); when(config.getMasterInfo()).thenReturn(new MasterInfo("192.168.1.1:18080")); PowerMockito.mockStatic(AddressUtils.class); PowerMockito.when(AddressUtils.getLocalAddress()).thenReturn("127.0.0.1"); TubeMultiSessionFactory factory = new TubeMultiSessionFactory(config); factory.shutdown(); }