/**
* Checks the font color used on a given node.
*/
public Assertion foregroundEquals(final String path, final String color) {
return new Assertion() {
public void check() {
Object userObject = getTreePath(path).getLastPathComponent();
ColorUtils.assertEquals(color, getShownColor(userObject));
}
};