### Question:
LogFileService implements LogPersistenceService<FilePersistence> { @NotNull @Override public FilePersistence create(String quorumId) throws IOException { return new FilePersistence(getNewLogFilePath(quorumId)); } LogFileService(Path basePath); @Nullable @Override FilePersistence getCurrent(String quorumId); @NotNull @Override FilePersistence create(String quorumId); @Override void append(String quorumId, @NotNull FilePersistence persistence); @Override void truncate(String quorumId); @Override ImmutableList<CheckedSupplier<FilePersistence, IOException>> getList(String quorumId); void clearAllLogs(); void archiveAllButCurrent(String quorumId);  }### Answer:
@Test public void returnsANewEmptyPersistenceOnEachCallToCreate() throws Exception { havingAppendedAPersistenceContainingHeader(anOLogHeader()); try (BytePersistence aSecondPersistence = logFileService.create(QUORUM_ID)) { assertThat(aSecondPersistence, isEmpty()); } }