fix for negative argument exception ICountDownLatch
test for exception
minor fix
checkstyle fix
checkstyle fix
Merge pull request #3240 from bilalyasar/latchfix

illegalArgumentException fix ICountDownLatch