Neo4jComponent extends DefaultComponent { @Override protected Neo4jEndpoint createEndpoint(String uri, String remaining, Map<String, Object> params) throws Exception { Neo4jEndpoint endpoint = new Neo4jEndpoint(uri, remaining, this); setProperties(endpoint, params); return endpoint; } Neo4jComponent();  Neo4jComponent(CamelContext context);   }
@Test public void testEndpointCreated() throws Exception { Map<String, Object> params = new HashMap<String, Object>(); String uri = "spring-neo4j:http: String remaining = "http: Endpoint endpoint = new Neo4jComponent(context).createEndpoint(uri, remaining, params); assertNotNull(endpoint); }