End-to-End Integration Tests

It is possible to conduct end-to-end integration tests by binding a JUnit component reference to a transport. The following tests invokes the HelloWorldService over JMS (the JMS profile will need to be installed in the plugin runtime):

@RunWith(Fabric3Runner.class)

public class HelloWorldTest {
	@Reference
	@JMS(@JMSConfiguration(destination="HelloQueue"))
	protected HelloWorldService service;
 
	@Test
	public void testJMSInvoke() {
		service.hello("hello");
	}
}