@Test
public void shouldCreateWithProperties() {

    Map<String, String> connectionSettings = new LinkedHashMap<>();
    connectionSettings.put("brokerUrl", "typ://localhost:61617");
    connectionSettings.put("username", "foo");
    connectionSettings.put("password", "secret");
    ConnectionFactory connectionFactory = connectionFactoryCreator.create(connectionSettings);
    Assertions.assertThat(ActiveMQConnectionFactory.class).isEqualTo(connectionFactory.getClass());
    Assertions.assertThat("typ://localhost:61617").isEqualTo(((ActiveMQConnectionFactory)connectionFactory).getBrokerURL());
    Assertions.assertThat("foo").isEqualTo(((ActiveMQConnectionFactory)connectionFactory).getUserName());
    Assertions.assertThat("secret").isEqualTo(((ActiveMQConnectionFactory)connectionFactory).getPassword());
}