ObjectHelper.notNull(annotation, "Should be annotated with @Mock");
String uri = annotation.value();
if (ObjectHelper.isEmpty(uri)) {
uri = "mock:" + point.getMember().getName();
}
return CamelContextHelper.getMandatoryEndpoint(getCamelContext(point, annotation.context()), uri, MockEndpoint.class);
}
@Produces
@Uri("")
public Endpoint createEndpoint(InjectionPoint point) {