@Test
public void testCheckLock() {

    long v = dynoLockClient.acquireLock(resource, 5000);
    Assert.assertTrue("Acquire lock did not succeed in time", v > 0);
    Assert.assertEquals(1, dynoLockClient.getLockedResources().size());
    v = dynoLockClient.checkLock(resource);
    Assert.assertTrue("Check lock failed for acquired lock",v > 0);
    dynoLockClient.releaseLock(resource);
    Assert.assertTrue("Check lock failed for acquired lock", dynoLockClient.checkLock(resource) == 0);
}