@Test
  public void validArgumentsTest() {
    long segmentSizeInBytes = Utils.getRandomLong(TestUtils.RANDOM, Long.MAX_VALUE) + 1;
    long segmentsNeeded = Utils.getRandomLong(TestUtils.RANDOM, Long.MAX_VALUE);
    long swapUsed = Utils.getRandomLong(TestUtils.RANDOM, Long.MAX_VALUE);
    DiskSpaceRequirements requirements = new DiskSpaceRequirements(storeId, segmentSizeInBytes, segmentsNeeded, swapUsed);
    assertEquals("segment size doesn't match", segmentSizeInBytes, requirements.getSegmentSizeInBytes());
    assertEquals("segments needed doesn't match", segmentsNeeded, requirements.getSegmentsNeeded());
    assertEquals("swap used doesn't match", swapUsed, requirements.getSwapSegmentsInUse());
  }
Test constructor and getter methods with valid constructor arguments.
ambry-store/src/test/java/com/github/ambry/store/DiskSpaceRequirementsTest.java