@Test
public void testConfigureFactoryForMultiConfigsWithProfileOne() {

    System.setProperty(ConnectionConfiguration.PROFILE_PROPERTY, "profileOne");
    ConnectionConfigurator configurator = instancePool.select(ConnectionConfigurator.class).get();
    configurator.configureFactory(TestEventBinderTwo.class);
    ConnectionFactory connectionFactory = configurator.connectionFactory;
    Assert.assertEquals("hostOne", connectionFactory.getHost());
    Assert.assertEquals(1111, connectionFactory.getPort());
}