### Question:
UnionFind { public int getSubsetSize(int i) { return sizes[find(i)]; } UnionFind(int n); int find(int i); int union(int i, int j); int getSubsetSize(int i); int getSubsetsCount();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testSubsetSizeIllegalArgument1() { UnionFind unionFind = new UnionFind(5); unionFind.getSubsetSize(-1); }
@Test(expected = IllegalArgumentException.class) public void testSubsetSizeIllegalArgument2() { UnionFind unionFind = new UnionFind(5); unionFind.getSubsetSize(5); }