public void createWithBucket_replicatedBucket_configWithServerNameForReplicatedBucket() {
LocalBucket replicatedBucket = TUtilsBucket.createReplicatedBucket();
String serverName = "serverName";
when(getsServerNameForBucket.getServerName(replicatedBucket)).thenReturn(
serverName);
ArchiveConfiguration configWithServerName = mock(ArchiveConfiguration.class);
when(config.newConfigWithServerName(serverName)).thenReturn(
configWithServerName);
ArchiveConfiguration actualConfig = configProvider
.createWithBucket(replicatedBucket);
assertEquals(actualConfig, configWithServerName);
}