* a-b (1 2) - instead of "a-a-b", which will be the case if file from index not ignored
* </pre>
*/
@Test
public void fileAlreadyInIndex() {
CloneIndex index = createIndex(
newBlocks("a", "1 2 3"),
newBlocks("b", "1 2 4"));
// Note about blocks with hashes "3", "4" and "5": those blocks here in order to not face another problem - with EOF (see separate test)
Block[] fileBlocks = newBlocks("a", "1 2 5");
List<CloneGroup> result = detect(index, fileBlocks);