public void testMultiSegment() throws CHKEncodeException, IOException, MetadataUnresolvedException, MetadataParseException, FetchException {
testMultiSegment(32768*4, new int[] { 2, 2 }, new int[] { 3, 3 }, 2, 3, 0,
InsertContext.CompatibilityMode.COMPAT_1416);
testMultiSegment(32768*4-1, new int[] { 2, 2 }, new int[] { 3, 3 }, 2, 3, 0,
InsertContext.CompatibilityMode.COMPAT_1416);
testMultiSegment(32768*9-1, new int[] { 3, 3, 3 }, new int[] { 4, 4, 4 }, 3, 4, 0,
InsertContext.CompatibilityMode.COMPAT_1416);
testMultiSegment(32768*7-1, new int[] { 3, 2, 2 }, new int[] { 4, 4, 4 }, 3, 4, 2,
InsertContext.CompatibilityMode.COMPAT_1416);
testMultiSegment(32768*9-1, new int[] { 7, 2 }, new int[] { 7, 2 }, 7, 7, 0,
InsertContext.CompatibilityMode.COMPAT_1416);
}