@Test(expected=IllegalArgumentException.class)
public void testAddStorageWithDifferentBlock() throws Exception {

  BlockInfo blockInfo1 = new BlockInfoContiguous(new Block(1000L), (short) 3);
  BlockInfo blockInfo2 = new BlockInfoContiguous(new Block(1001L), (short) 3);
  final DatanodeStorageInfo storage = DFSTestUtil.createDatanodeStorageInfo(
      "storageID", "127.0.0.1");
  blockInfo1.addStorage(storage, blockInfo2);
}