cref.initialize(assemblyContext);
EntryPoint sourceEP = createFooBindingEntryPoint("source", HelloWorldService.class);
sourceEP.setConfiguredReference(cref);
sourceEP.getConfiguredService().getPort().setName("HelloWorldService");
sourceEP.initialize(assemblyContext);
Module module = factory.createModule();
module.setName("test.module");
module.getEntryPoints().add(sourceEP);
module.getComponents().add(targetComponent);