@@ -0,0 +1,1214 @@
+package jetbrains.jetpad.model.collections;%0A%0Aimport jetbrains.jetpad.model.collections.list.ObservableArrayList;%0Aimport jetbrains.jetpad.model.collections.list.ObservableList;%0Aimport jetbrains.jetpad.model.collections.set.ObservableHashSet;%0Aimport jetbrains.jetpad.model.collections.set.ObservableSet;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mockito.Mockito;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class ObservableHashSetTest %7B%0A  private ObservableSet%3CString%3E set = new ObservableHashSet%3C%3E();%0A  private CollectionListener%3CString%3E listener = Mockito.mock(CollectionAdapter.class);%0A%0A  @Before%0A  public void init() %7B%0A    set.addListener(listener);%0A  %7D%0A%0A  @Test%0A  public void add() %7B%0A    set.add(%22x%22);%0A%0A    Mockito.verify(listener).onItemAdded(new CollectionItemEvent%3C%3E(%22x%22, -1, true));%0A  %7D%0A%0A  @Test%0A  public void remove() %7B%0A    set.add(%22x%22);%0A    Mockito.reset(listener);%0A%0A    set.remove(%22x%22);%0A%0A    Mockito.verify(listener).onItemRemoved(new CollectionItemEvent%3C%3E(%22x%22, -1, false));%0A  %7D%0A%0A  @Test%0A  public void clear() %7B%0A    set.add(%22x%22);%0A    Mockito.reset(listener);%0A%0A    set.clear();%0A%0A    Mockito.verify(listener).onItemRemoved(new CollectionItemEvent%3C%3E(%22x%22, -1, false));%0A  %7D%0A%7D%0A

test for observable hash set