public static boolean isUploadedRealtimeSegmentName(String segmentName) {
    int numSeparators = 0;
    int index = 0;
    while ((index = segmentName.indexOf(SEPARATOR, index)) != -1) {
      numSeparators++;
      index += 2; // SEPARATOR.length()
    }
    return numSeparators == 4;
  }
@Test
  public void testIsUploadedRealtimeSegmentName() {
    String validSegmentName = "uploaded__table__0__20220101T0000Z__suffix";
    Assert.assertTrue(UploadedRealtimeSegmentName.isUploadedRealtimeSegmentName(validSegmentName));

    String invalidSegmentName = "uploaded__table__0__20220101T0000Z";
    Assert.assertFalse(UploadedRealtimeSegmentName.isUploadedRealtimeSegmentName(invalidSegmentName));
  }