@Override
    public String getName() {
        return name;
    }
@Test
    public void testEqualsAndHashCode() {
        assumeDifferentHashCodes();
        EqualsVerifier.forClass(ReplicatedMapConfig.class)
                .suppress(Warning.NONFINAL_FIELDS)
                .withPrefabValues(MergePolicyConfig.class,
                        new MergePolicyConfig(PutIfAbsentMergePolicy.class.getName(), 100),
                        new MergePolicyConfig(DiscardMergePolicy.class.getName(), 200))
                .withPrefabValues(ReplicatedMapConfigReadOnly.class,
                        new ReplicatedMapConfigReadOnly(new ReplicatedMapConfig("red")),
                        new ReplicatedMapConfigReadOnly(new ReplicatedMapConfig("black")))
                .verify();
    }