public static void main(String args[]) {
    SurvivorAlignmentTestMain test = SurvivorAlignmentTestMain.fromArgs(args);
    System.out.println(test);

    long expectedUsage = test.getExpectedMemoryUsage();
    test.baselineMemoryAllocation();
    SurvivorAlignmentTestMain.WHITE_BOX.fullGC();

    test.allocate();
    SurvivorAlignmentTestMain.WHITE_BOX.youngGC();

    test.verifyMemoryUsage(expectedUsage);
  }
  public static void main(String args[]) {
    SurvivorAlignmentTestMain test = SurvivorAlignmentTestMain.fromArgs(args);
    System.out.println(test);

    long expectedMemoryUsage = test.getExpectedMemoryUsage();
    test.baselineMemoryAllocation();
    System.gc();
    // increase expected usage by current old gen usage
    expectedMemoryUsage +=
        SurvivorAlignmentTestMain.getAlignmentHelper(SurvivorAlignmentTestMain.HeapSpace.TENURED)
            .getActualMemoryUsage();

    test.allocate();
    SurvivorAlignmentTestMain.WHITE_BOX.youngGC();
    System.gc();

    test.verifyMemoryUsage(expectedMemoryUsage);
  }