package com.github.emalock3.camel.issues;

import org.apache.camel.EndpointInject;
import org.apache.camel.Produce;
import org.apache.camel.ProducerTemplate;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.junit4.CamelTestSupport;
import org.junit.Test;

public class ApacheJiraIssuesComponentTest extends CamelTestSupport {
	
	@EndpointInject(uri = "mock:result")
	protected MockEndpoint resultEndpoint;
	
	@Produce(uri = "direct:start")
	protected ProducerTemplate template;

	@Test
	public void test() {
		template.sendBody("direct:start", "hoge1");
	}

	@Override
	protected RouteBuilder createRouteBuilder() {
		return new RouteBuilder() {
			@Override
			public void configure() throws Exception {
				from("direct:start")
					.to("apache-jira-issues:CAMEL")
					.split(body())
						.to("log:camelIssues")
					.end()
					.log("end");
			}
		};
	}

}

@@ -64,497 +64,177 @@
 mel.
-EndpointInject;%0Aimport org.apache.camel.Produce;%0Aimport org.apache.camel.ProducerTemplate;%0Aimport org.apache.camel.builder.RouteBuilder;%0Aimport org.apache.camel.component.mock.MockEndpoint;%0Aimport org.apache.camel.test.junit4.CamelTestSupport;%0Aimport org.junit.Test;%0A%0Apublic class ApacheJiraIssuesComponentTest extends CamelTestSupport %7B%0A%09%0A%09@EndpointInject(uri = %22mock:result%22)%0A%09protected MockEndpoint resultEndpoint;%0A%09%0A%09@Produce(uri = %22direct:start%22)%0A%09protected ProducerTemplate template;
+builder.RouteBuilder;%0Aimport org.apache.camel.test.junit4.CamelTestSupport;%0Aimport org.junit.Test;%0A%0Apublic class ApacheJiraIssuesComponentTest extends CamelTestSupport %7B
 %0A%0A%09@

Remove unnecessary variables and organize imports