### Question:
App { public static void main(String[] args) throws Exception { var context = SpringApplication.run(App.class, args); var camelContext = (CamelContext) context.getBean("camelContext"); camelContext.addRoutes(new RouteBuilder() { @Override public void configure() { from("{{endpoint}}").log("ENDPOINT: ${body}"); } }); String[] stringArray = {"Test item #1", "Test item #2", "Test item #3"}; camelContext.createProducerTemplate().sendBody("{{entry}}", stringArray); SpringApplication.exit(context); }  static void main(String[] args);  }### Answer:
@Test void shouldExecuteApplicationWithoutException() { assertDoesNotThrow(() -> App.main(new String[]{})); }