@Test
public void testProvider() {

    ShardSupplier ss = Mockito.mock(ShardSupplier.class);
    DynomiteConfiguration dc = Mockito.mock(DynomiteConfiguration.class);
    Mockito.doReturn("localOnly").when(dc)
            .getProperty(ArgumentMatchers.anyString(), ArgumentMatchers.anyString());
    RedisQueuesShardingStrategyProvider stratProvider
            = new RedisQueuesShardingStrategyProvider(ss, dc);
    Assert.assertTrue(stratProvider.get() instanceof RedisQueuesShardingStrategyProvider.LocalOnlyStrategy);
}