void () { final int[] fileIds = new int[]{1, 2, 3, 4, 5}; final int nameId = 42; for (int fileId : fileIds) { invertedNameIndex.updateFileName(fileId, nameId, NULL_NAME_ID); } final IntArraySet fileIdsReported = fileIdsByNameId(nameId); assertTrue( "fileIds(" + Arrays.toString(fileIds) + ") indexed must be the all reported back", fileIdsReported.size() == fileIds.length && fileIdsReported.containsAll(new IntArraySet(fileIds)) ); }