### Question:
JMSConnectionFactoryProvider extends AbstractControllerService implements JMSConnectionFactoryProviderDefinition { @Override public ConnectionFactory getConnectionFactory() { if (this.configured) { return this.connectionFactory; } throw new IllegalStateException("ConnectionFactory can not be obtained unless " + "this ControllerService is configured. See onConfigure(ConfigurationContext) method."); }  @Override ConnectionFactory getConnectionFactory(); @OnEnabled void enable(ConfigurationContext context); @OnDisabled void disable(); static final PropertyDescriptor CONNECTION_FACTORY_IMPL; static final PropertyDescriptor CLIENT_LIB_DIR_PATH; static final PropertyDescriptor BROKER_URI; static final PropertyDescriptor SSL_CONTEXT_SERVICE; }### Answer:
@Test(expected = IllegalStateException.class) public void validateGetConnectionFactoryFailureIfServiceNotConfigured() throws Exception { new JMSConnectionFactoryProvider().getConnectionFactory(); }