public void testConfigureLayoutCache() {
TreePath expandedPath = new TreePath(tree.getModel().getRoot())
.pathByAddingChild(node1);
tree.expandPath(expandedPath);
ui.treeState = new VariableHeightLayoutCache();
ui.configureLayoutCache();
assertSame(tree.getModel(), ui.treeState.getModel());
assertSame(tree.getSelectionModel(), ui.treeState.getSelectionModel());
assertSame(ui.nodeDimensions, ui.treeState.getNodeDimensions());
assertEquals(tree.getRowHeight(), ui.treeState.getRowHeight());