### Question:
ConfigurationImpl implements Configuration { @Override public Collection<String> getMemberShardNames(final MemberName memberName) { requireNonNull(memberName, "memberName should not be null"); List<String> shards = new ArrayList<>(); for (ModuleConfig moduleConfig: moduleConfigMap.values()) { for (ShardConfig shardConfig: moduleConfig.getShardConfigs()) { if (shardConfig.getReplicas().contains(memberName)) { shards.add(shardConfig.getName()); } } } return shards; } ConfigurationImpl(final String moduleShardsConfigPath, final String modulesConfigPath);  ConfigurationImpl(final ModuleShardConfigProvider provider); @Override Collection<String> getMemberShardNames(final MemberName memberName); @Override String getModuleNameFromNameSpace(final String nameSpace); @Override ShardStrategy getStrategyForModule(final String moduleName); @Override String getShardNameForModule(final String moduleName); @Override String getShardNameForPrefix(final DOMDataTreeIdentifier prefix); @Override Collection<MemberName> getMembersFromShardName(final String shardName); @Override Set<String> getAllShardNames(); @Override Collection<MemberName> getUniqueMemberNamesForAllShards(); @Override synchronized void addModuleShardConfiguration(final ModuleShardConfiguration config); @Override void addPrefixShardConfiguration(final PrefixShardConfiguration config); @Override void removePrefixShardConfiguration(final DOMDataTreeIdentifier prefix); @Override Map<DOMDataTreeIdentifier, PrefixShardConfiguration> getAllPrefixShardConfigurations(); @Override boolean isShardConfigured(final String shardName); @Override void addMemberReplicaForShard(final String shardName, final MemberName newMemberName); @Override void removeMemberReplicaForShard(final String shardName, final MemberName newMemberName); @Override ShardStrategy getStrategyForPrefix(final DOMDataTreeIdentifier prefix);  }### Answer:
@Test public void testGetMemberShardNames() { Collection<String> memberShardNames = configuration.getMemberShardNames(MEMBER_1); assertEquals("getMemberShardNames", ImmutableSortedSet.of("people-1", "cars-1", "test-1", "default"), ImmutableSortedSet.copyOf(memberShardNames)); memberShardNames = configuration.getMemberShardNames(MEMBER_2); assertEquals("getMemberShardNames", ImmutableSortedSet.of("default"), ImmutableSortedSet.copyOf(memberShardNames)); memberShardNames = configuration.getMemberShardNames(MEMBER_100); assertEquals("getMemberShardNames size", 0, memberShardNames.size()); }