def METHOD_NAME(self):
    map = geemap.Map(ee_initialize=False)
    toolbar = Toolbar(map, [self.item], [self.no_reset_item])
    self.assertEqual(len(toolbar.grid.children), 2)
    self.assertIsNotNone(toolbar.toggle_widget)
    toggle = toolbar.all_widgets[1]
    self.assertEqual(toggle.icon, "plus")
    self.assertEqual(toggle.tooltip, "Expand toolbar")
    # Expand
    toggle.value = True
    self.assertEqual(len(toolbar.grid.children), 3)
    self.assertEqual(toggle.icon, "minus")
    self.assertEqual(toggle.tooltip, "Collapse toolbar")
    # After expanding, button is unselected.
    self.assertFalse(toggle.value)
    # Collapse
    toggle.value = True
    self.assertEqual(len(toolbar.grid.children), 2)
    self.assertEqual(toggle.icon, "plus")
    self.assertEqual(toggle.tooltip, "Expand toolbar")
    # After collapsing, button is unselected.
    self.assertFalse(toggle.value)