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

  DatanodeStorageInfo storage = DFSTestUtil.createDatanodeStorageInfo(
      "storageID", "127.0.0.1");
  BlockInfo replica = new BlockInfoContiguous(new Block(1000L), (short) 3);
  info.addStorage(storage, replica);
}