I'm experimenting with JUnit test, but I'm not sure how would work with this. I have a class whose method returns a String with the name of such method.
public class Example {
    static void method1() {
        System.out.println("method1");
    }
    public static void main(String[] args) {
        method1();
    }
}
Now, I want to test this class with JUnit assertions, but since there are no variables, I don't know how to test this code.
Could someone tell me the full code for this JUnit test?
 
     
     
    