@Test(expected=IllegalArgumentException.class)
public void testAddStorageWithDifferentBlockGroup() {

  DatanodeStorageInfo storage = DFSTestUtil.createDatanodeStorageInfo(
      "storageID", "127.0.0.1");
  BlockInfo diffGroup = new BlockInfoStriped(new Block(BASE_ID + 100),
      testECPolicy);
  info.addStorage(storage, diffGroup);
}