* @param modelValue the value of a cell, retrieved from the model.
* @return the internal value of a cell in a <code>JTree</code> as expected in a test.
*/
@RunsInCurrentThread
public String valueAt(JTree tree, Object modelValue) {
TreeCellRenderer r = tree.getCellRenderer();
Component c = r.getTreeCellRendererComponent(tree, modelValue, false, false, false, 0, false);
String value = (c != null) ? rendererReader.valueFrom(c) : null;
if (value != null) return value;
value= tree.convertValueToText(modelValue, false, false, false, 0, false);
if (isDefaultToString(value)) return null;
return value;