@Test
public void filter() throws Exception {

    DfsFilter filter = new RandomDfsFilter();
    UiObject root = new TestUiObject(10);
    List<UiObject> list = filter.filter(root);
    for (UiObject uiObject : list) {
        if (root != uiObject)
            uiObject.recycle();
    }
    System.out.println(TestUiObject.max);
    assertEquals(1, TestUiObject.count);
}