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