@Before
 public void setUp() {
   assumeTrue(TestUtil.notHeadless());
   root = new FakeScene();
   panel = new MockTextInputPanel();
   parent = new PropPanel(new FakePropProxy());
   parent.add(panel);
   root.add(parent);
   stage = new MockStage();
   root.setStage(stage);
   model = panel.getModel();
   model.setText("Some Text");
 }
  @Before
  public void setUp() throws Exception {
    assumeTrue(TestUtil.notHeadless());
    parent = new MockProp();
    parent.setLocation(0, 0);
    parent.setSize(100, 100);
    style = parent.getStyle();
    panel = new TextPanel(parent, "Some Text");
    parent.add(panel);
    root = new ScenePanel(new FakePropProxy());
    root.setStage(new MockStage());
    root.add(parent);
    style.setTextColor("green");
    parent.prop.sceneProxy = new FakeSceneProxy();

    defaultFontFace = style.getFontFace();
    defaultFontSize = style.getFontSize();
    defaultFontStyle = style.getFontStyle();
    defaultTextColor = style.getCompiledTextColor().getColor();
  }