if (extraBlockSize > 0 && extraBlockSize < blockSize) {
blocks.add(new BlockLocation(new String[]{"names"+i}, new String[]{"hosts"+i}, offset, extraBlockSize));
offset += extraBlockSize;
}
FileStatus mStatus = mock(FileStatus.class);
Path mPath = mock(Path.class);
FileSystem mFs = mock(FileSystem.class);
when(mStatus.getLen()).thenReturn(offset);
when(mStatus.getBlockSize()).thenReturn(blockSize);
when(mFs.getFileStatus(mPath)).thenReturn(mStatus);
when(mFs.getFileBlockLocations((FileStatus)any(), anyLong(), anyLong())).thenAnswer(new Answer<BlockLocation[]>() {
@Override