def METHOD_NAME(self):
    """
    Test that forked() invalidates all items in the cache, and they can
    be fetched from state.
    """
    self._settings_view_factory.add_setting("setting1", "test1")
    self._settings_view_factory.add_setting("setting2", "test2")
    settings_view = \
        self._settings_view_factory.create_settings_view("state_root")
    self._settings_cache.get_setting("setting1", lambda: "test1")
    self._settings_cache.get_setting("setting2", lambda: "test2")
    self.assertEqual(len(self._settings_cache), 2)
    self._settings_cache.forked()
    self.assertEqual(self._settings_cache["setting1"], None)
    self.assertEqual(self._settings_cache["setting2"], None)
    self.assertEqual(
        self._settings_cache.get_setting(
            "setting1", self._state_root_func),
        settings_view.get_setting("setting1"))
    self.assertEqual(
        self._settings_cache.get_setting(
            "setting2", self._state_root_func),
        settings_view.get_setting("setting2"))