@@ -0,0 +1,1046 @@
+package structures;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Apublic class DisjointSetTest %7B%0A  @Test%0A  public void findParent() throws Exception %7B%0A    DisjointSet disjointSet = new DisjointSet(1);%0A    Assert.assertEquals(%22new disjoint sets should be their own parent%22,%0A        disjointSet, disjointSet.findParent());%0A  %7D%0A%0A  @Test%0A  public void union() throws Exception %7B%0A    DisjointSet a = new DisjointSet(1);%0A    DisjointSet b = new DisjointSet(2);%0A    a.union(b);%0A%0A    Assert.assertEquals(%22Union with another disjoint set should cause the parent of the other%22 +%0A        %22 to become the parent of this%22,%0A        a, b.findParent());%0A  %7D%0A%0A  @Test%0A  public void makeUnconnectedForest() throws Exception %7B%0A    int size = 15;%0A    DisjointSet%5B%5D arr = DisjointSet.makeUnconnectedForest(size);%0A    Assert.assertEquals(size, arr.length);%0A  %7D%0A%0A  @Test%0A  public void makeUnconnectedForest_other() throws Exception %7B%0A    int size = 5;%0A    DisjointSet%5B%5D arr = DisjointSet.makeUnconnectedForest(size);%0A    Assert.assertEquals(size, arr.length);%0A  %7D%0A%7D

Add DisjointSetTest to increase coverage