final int FILE_LEN = 123;
final String pathStr = "/testInvalidateMultipleReplicas";
try {
FileSystem fs = cluster.getFileSystem();
Path path = new Path(pathStr);
cluster.waitActive();
// create a small file on 3 nodes
DFSTestUtil.createFile(fs, path, 123, (short)3, 0);
DFSTestUtil.waitReplication(fs, path, (short)3);
NameNode nn = cluster.getNameNode();
LocatedBlocks located = nn.getBlockLocations(pathStr, 0, FILE_LEN);