private void doInvalidArgumentsTest(long segmentSizeInBytes, long segmentsNeeded, long swapUsed) {
    try {
      new DiskSpaceRequirements(storeId, segmentSizeInBytes, segmentsNeeded, swapUsed);
      fail("Should have encountered IllegalArgumentException");
    } catch (IllegalArgumentException e) {
      // Expected
    }
  }
Expect an {@link IllegalArgumentException} when constructing the object.
@param segmentSizeInBytes the segment size in bytes.
@param segmentsNeeded the number of segments needed.
@param swapUsed the number of swap segments used.
ambry-store/src/test/java/com/github/ambry/store/DiskSpaceRequirementsTest.java