public static Options options() {
    return new Options("/tmp", 100, SorterType.HADOOP);
  }
@Test
  public void testMemoryTooLarge() {
    thrown.expect(IllegalArgumentException.class);
    thrown.expectMessage("memoryMB must be less than 2048");
    BufferedExternalSorter.Options options = BufferedExternalSorter.options();
    options.withMemoryMB(2048);
  }