}
public void testCreateLeafFilteringTreeNode() throws Exception
{
TreeNode rootNode = SampleTreeFactory.createSampleTree1();
BoostFunction<String, Boolean, ?> leafFilter = new ReflectionFunctions(ReflectionFunctions.Operation.invokeMethod,"equals", "a");
TreeNode newRootNode = TreeNodeFactory.createLeafFilteringTreeNode(rootNode, /*<TreeNode, Boolean>*/new ModifyingFunction(ModifyingFunction.Operation.concatenatedFunctions, new ReflectionFunctions(ReflectionFunctions.Operation.invokeMethod/*<ComputedTreeNode<File>, File>(*/,"getUserObject"), leafFilter), new InvocationContext());
//only the a leaf is resulting, no other leafs or folder should be present
JFrame frame1 = JComponentBoostUtils.createDisposingJFrameWithOneComponent("Original", new JTree(rootNode), 800, 800);
JFrame frame = JComponentBoostUtils.createDisposingJFrameWithOneComponent("Filtered", new JTree(newRootNode), 800, 800);
//ThreadBoostUtils.sleep(30000);