### Question:
PersistedAppendingBuffer { public void append(@Nonnull E element) { accessor.append(element); } private  PersistedAppendingBuffer(
      String name,
      Class<E> elementType,
      Expiration expiration,
      AppendingBufferAccessor<E> accessor); static PersistedAppendingBuffer<E> of(String name, Class<E> elementType); static PersistedAppendingBuffer<E> of(
      String name, Class<E> elementType, Expiration expiration); String name(); Class<E> elementType(); Expiration expiration(); void append(@Nonnull E element); void appendAll(@Nonnull List<E> elements); void replaceWith(@Nonnull List<E> elements); @Nonnull Iterable<E> view(); void clear(); @Override String toString();  }### Answer:
@Test public void append() { PersistedAppendingBuffer<String> buffer = PersistedAppendingBuffer.of("test", String.class); buffer.append("element"); assertThat(buffer.view().iterator().next(), is("element")); }