unit tests for CountDownLatch

Don't use trainwrecks.
NodeEngine nodeEngine = getNode(instance).getNodeEngine();
CountdownLatchService service = nodeEngine(getService....)

If you do this multiple times in a single test -> extract it into a method. Copy/paste programming is a very dangerous programming-sin.