title: How to JUnit Test Spring-Boot's Application.java
body: <p>Apologize as this might seems to be an useless act, but is there any way we can actually do junit test on Spring-Boot(1.3.8.RELEASE)'s Application.java which this class does nothing but to start a Spring-boot application?</p>
  
  <p>Given below:</p>
  
  <pre><code>@SpringBootApplication
  public class Application {
  
      public static void main(String[] args) {
  
         try{
               SpringApplication.run(Application.class, args);
         }catch(Exception e){
               //code here
         }   
      }
  }
  </code></pre>
  
  <p>Maybe i can try catching exception? but what else can i possibly test so that JUnit will test out SpringApplication.run()? any example is appreciated. Thank you all!</p>