DefaultShardStrategy implements ShardStrategy { @Override public String findShard(YangInstanceIdentifier path) { return DEFAULT_SHARD; } private  DefaultShardStrategy(); static DefaultShardStrategy getInstance(); @Override String findShard(YangInstanceIdentifier path); @Override YangInstanceIdentifier getPrefixForPath(YangInstanceIdentifier path); static final String NAME; static final String DEFAULT_SHARD; }
@Test public void testFindShard() { String shard = DefaultShardStrategy.getInstance().findShard(TestModel.TEST_PATH); Assert.assertEquals(DefaultShardStrategy.DEFAULT_SHARD, shard); }