@Test
public void testGetLockEmpty() {

    new Expectations() {
        {
            ApplicationContextUtil.getBean(DistributedRedisPoolWrapper.class);
            result = new NoSuchBeanDefinitionException("DistributedRedisPoolWrapper");
        }
    };
    DistributedLock distributedLock = RedisDistributedLocks.getLock("myLock", 30L);
    assertThat(distributedLock, is(nullValue()));
}