@Test
public void testClickOnButtonTwice() throws Exception {

  clickOn(defaultOutputSocketController.previewButton());
  clickOn(defaultOutputSocketController.previewButton());
  WaitForAsyncUtils.waitForFxEvents();
  assertFalse("The output socket was not made not previewed when button was clicked twice",
      outputSocket.isPreviewed());
}