@Test
public void testIsShardByDb() {

    AbstractShardingStrategy test = new TestShardingStrategy();
    assertFalse(test.isShardByDb());
    
    test.setShardByDb(true);
    assertTrue(test.isShardByDb());
}