AzureBlobMetadata extends RemoteBlobMetadata { public static boolean isSegment(Map<String, String> metadata) { Map<String, String> caseInsensitiveMetadata = CaseInsensitiveKeysMapAccess.convert(metadata); return RemoteBlobMetadata.isSegment(caseInsensitiveMetadata); }  static RemoteSegmentArchiveEntry toIndexEntry(Map<String, String> metadata, int length); static boolean isSegment(Map<String, String> metadata);  }
@Test public void isSegment_caseInsensitive() { assertTrue(AzureBlobMetadata.isSegment(Collections.singletonMap("Type", "segment"))); assertTrue(AzureBlobMetadata.isSegment(Collections.singletonMap("TYPE", "segment"))); assertTrue(AzureBlobMetadata.isSegment(Collections.singletonMap("tYPE", "segment"))); }