App { public static void main( String[] args ) { HolderNaive holderNaive = new HolderNaive(); Heavy heavy = holderNaive.getHeavy(); System.out.println("heavy=" + heavy); HolderThreadSafe holderThreadSafe = new HolderThreadSafe(); Heavy another = holderThreadSafe.getHeavy(); System.out.println("another=" + another); Java8Holder java8Holder = new Java8Holder(); Heavy next = java8Holder.getHeavy(); System.out.println("next=" + next); }  static void main( String[] args );  }
@Test public void test() { String[] args = {}; App.main(args); }