ActiveMQConnectionFactoryCreator implements ConnectionFactoryCreator { @Override public boolean supports(Class<?> type) { return "org.apache.activemq.ActiveMQConnectionFactory".equals(type.getName()); }  @Override ConnectionFactory create(Map<String, String> properties); @Override boolean supports(Class<?> type);  }
@Test public void shouldSupport() { Assertions.assertThat(connectionFactoryCreator.supports(ActiveMQConnectionFactory.class)).isTrue(); Assertions.assertThat(connectionFactoryCreator.supports(ConnectionFactory.class)).isFalse(); }