### Question:
FilePersistentStateManager implements PersistentStateManager { @Override public void reset(String objectName) { synchronized (mPersistentState) { mPersistentState.remove(objectName); } } 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 reset() throws Exception { File file = new File("temp.cbor"); String obj1String; String obj2String; file.delete(); { TestIface obj1 = new TestIface(); TestIface obj2 = new TestIface(); PersistentStateManager persistentStateManager = FilePersistentStateManager.create(file); persistentStateManager.startManaging("obj1", obj1); persistentStateManager.startManaging("obj2", obj2); obj1String = PARAM_WHOAMI_KEY.getFromMap(obj1.mMap); obj2String = PARAM_WHOAMI_KEY.getFromMap(obj2.mMap); assertEquals("Fresh", PARAM_STRING_KEY.getFromMap(obj1.mMap)); assertEquals("Fresh", PARAM_STRING_KEY.getFromMap(obj2.mMap)); persistentStateManager.close(); } { TestIface obj1 = new TestIface(); TestIface obj2 = new TestIface(); PersistentStateManager persistentStateManager = FilePersistentStateManager.create(file); persistentStateManager.reset("obj1"); persistentStateManager.startManaging("obj1", obj1); persistentStateManager.startManaging("obj2", obj2); assertNotEquals(obj1String, PARAM_WHOAMI_KEY.getFromMap(obj1.mMap)); assertEquals(obj2String, PARAM_WHOAMI_KEY.getFromMap(obj2.mMap)); assertEquals("Fresh", PARAM_STRING_KEY.getFromMap(obj1.mMap)); assertEquals("Not fresh", PARAM_STRING_KEY.getFromMap(obj2.mMap)); persistentStateManager.close(); } { TestIface obj1 = new TestIface(); TestIface obj2 = new TestIface(); PersistentStateManager persistentStateManager = FilePersistentStateManager.create(file); persistentStateManager.reset(); persistentStateManager.startManaging("obj1", obj1); persistentStateManager.startManaging("obj2", obj2); assertNotEquals(obj1String, PARAM_WHOAMI_KEY.getFromMap(obj1.mMap)); assertNotEquals(obj2String, PARAM_WHOAMI_KEY.getFromMap(obj2.mMap)); assertEquals("Fresh", PARAM_STRING_KEY.getFromMap(obj1.mMap)); assertEquals("Fresh", PARAM_STRING_KEY.getFromMap(obj2.mMap)); persistentStateManager.reset(); persistentStateManager.close(); } { TestIface obj1 = new TestIface(); TestIface obj2 = new TestIface(); PersistentStateManager persistentStateManager = FilePersistentStateManager.create(file); persistentStateManager.startManaging("obj1", obj1); persistentStateManager.startManaging("obj2", obj2); assertNotEquals(obj1String, PARAM_WHOAMI_KEY.getFromMap(obj1.mMap)); assertNotEquals(obj2String, PARAM_WHOAMI_KEY.getFromMap(obj2.mMap)); assertEquals("Fresh", PARAM_STRING_KEY.getFromMap(obj1.mMap)); assertEquals("Fresh", PARAM_STRING_KEY.getFromMap(obj2.mMap)); persistentStateManager.close(); } file.delete(); }