I have worked with junit test integration tests and controller tests in spring and usually we test the output of a method but when i tried to test a simple hello world in main method i had no idea how to go about it so will like to get any idea on what do write
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
    }
}
This is the simple java class any idea how i can test it I tried to write something like this
public void mainMethodTest() throws Exception{
        System.out.println("hello world");
        String[] args = null;
        Assert.assertEquals(System.out.println("hello world"),App.main(args));
    }
 
     
     
     
    