private void checkPosAndGeneration(LogSegmentName name, long expectedPos, long expectedGen) {
    assertEquals("Did not get expected position", expectedPos, name.getPosition());
    assertEquals("Did not get expected generation number", expectedGen, name.getGeneration());
  }
Checks the position and generation obtained from {@code name} match {@code expectedPos} and {@code expectedGen}
respectively.
@param name the name whose position and generation needs to be checked.
@param expectedPos the expected return value from {@link LogSegmentName#getPosition}.
@param expectedGen the expected return value from {@link LogSegmentName#getGeneration}.
ambry-store/src/test/java/com/github/ambry/store/LogSegmentNameTest.java