@Test
public void testBinarySearchInChildren() {

  List<MetadataIndexEntry> list = new ArrayList<>();
  list.add(new MetadataIndexEntry("s0", -1L));
  list.add(new MetadataIndexEntry("s5", -1L));
  list.add(new MetadataIndexEntry("s10", -1L));
  list.add(new MetadataIndexEntry("s15", -1L));
  list.add(new MetadataIndexEntry("s20", -1L));
  MetadataIndexNode metadataIndexNode = new MetadataIndexNode(list, -1L,
      MetadataIndexNodeType.LEAF_MEASUREMENT);
  Assert.assertEquals(0, metadataIndexNode.binarySearchInChildren("s0"));
  Assert.assertEquals(2, metadataIndexNode.binarySearchInChildren("s10"));
  Assert.assertEquals(2, metadataIndexNode.binarySearchInChildren("s13"));
  Assert.assertEquals(4, metadataIndexNode.binarySearchInChildren("s23"));
}