@Test(expected = IllegalArgumentException.class)
  public void testInvalid() {
    new MemorySize(-1);
  }
Tests for the {@link MemorySize} class.
amoro-common/src/test/java/org/apache/amoro/utils/MemorySizeTest.java