DefaultConnectionFactoryCreator implements ConnectionFactoryCreator { @Override public boolean supports(Class<?> type) { return ConnectionFactory.class.isAssignableFrom(type); }  @Override ConnectionFactory create(Map<String, String> properties); @Override boolean supports(Class<?> type);  }
@Test public void shouldSupports() { Assertions.assertThat(connectionFactoryCreator.supports(ConnectionFactory.class)).isTrue(); Assertions.assertThat(connectionFactoryCreator.supports(ActiveMQConnectionFactory.class)).isTrue(); Assertions.assertThat(connectionFactoryCreator.supports(String.class)).isFalse(); }