PDI-12893 - JUnit test.
PDI-12893 - Exception in thread "main" java.util.ConcurrentModificationException
Merge pull request #871 from YuryBY/PDI-12893

[PDI-12893] - Exception in thread "main" java.util.ConcurrentModificationException