@Test
public void testCountDownLatch() throws Exception {
String partitionKey = "hazelcast";
HazelcastInstance hz = getHazelcastInstance(partitionKey);
ICountDownLatch countDownLatch = hz.getCountDownLatch("countdownlatch@" + partitionKey);
countDownLatch.trySetCount(1);
assertEquals("countdownlatch@" + partitionKey, countDownLatch.getName());
assertEquals(partitionKey, countDownLatch.getPartitionKey());
CountDownLatchService service = getNodeEngine(hz).getService(CountDownLatchService.SERVICE_NAME);
assertTrue(service.containsLatch(countDownLatch.getName()));
}