### Question:
S3PersistWriter implements StreamsPersistWriter, DatumStatusCountable { public void cleanUp() { closeAndDestroyWriter(); } S3PersistWriter();  S3PersistWriter(S3WriterConfiguration s3WriterConfiguration);  S3PersistWriter(AmazonS3Client amazonS3Client, S3WriterConfiguration s3WriterConfiguration); AmazonS3Client getAmazonS3Client(); S3WriterConfiguration getS3WriterConfiguration(); List<String> getWrittenFiles(); Map<String, String> getObjectMetaData(); ObjectMapper getObjectMapper(); void setObjectMapper(ObjectMapper mapper); void setObjectMetaData(Map<String, String> val); @Override String getId(); @Override void write(StreamsDatum streamsDatum); synchronized OutputStreamWriter resetFile(); @Override void prepare(Object configurationObject); void cleanUp(); @Override DatumStatusCounter getDatumStatusCounter(); static final String STREAMS_ID; }### Answer:
@Test public void testCleanup() { s3PersistWriter = new S3PersistWriter(getGoodConfig()); s3PersistWriter.prepare(null); s3PersistWriter.cleanUp(); }