### Question:
FilePersistentStateManager implements PersistentStateManager { @Override public void close() throws IOException { flush(); closeNoFlush(); } private  FilePersistentStateManager(File file); static FilePersistentStateManager create(File file); static FilePersistentStateManager createAndResetIfCorrupt(File file); @Override synchronized void startManaging(
            String objectName, PersistentStateInterface objectInstance); @Override synchronized void stopManaging(String objectName); @Override void refresh(String objectName); @Override void refresh(); @Override void reset(String objectName); @Override void reset(); @Override void flush(); @Override void close();  }### Answer:
@Test void close() throws IOException, CorruptPersistentStateException { File file = new File("temp.cbor"); PersistentStateManager persistentStateManager = FilePersistentStateManager.create(file); persistentStateManager.close(); file.delete(); }