text: package \${groupId}
  
  import griffon.core.artifact.ArtifactManager
  import griffon.test.core.GriffonUnitRule
  import griffon.test.core.TestFor
  import org.junit.Rule
  import org.junit.Test
  
  import javax.inject.Inject
  
  import static org.awaitility.Awaitility.await
  
  @TestFor(AppController)
  class AppControllerTest {
      static {
          System.setProperty('org.slf4j.simpleLogger.defaultLogLevel', 'trace')
          // force initialization JavaFX Toolkit
          new javafx.embed.swing.JFXPanel()
      }
  
      @Inject
      private ArtifactManager artifactManager
  
      private AppController controller
  
      @Rule
      public final GriffonUnitRule griffon = new GriffonUnitRule()
  
      @Test
      void executeClickAction() {
          // given:
          controller.model = artifactManager.newInstance(AppModel)
  
          // when:
          controller.invokeAction('click')
          await().until { controller.model.clickCount != "0" }
  
          // then:
          assert "1" == controller.model.clickCount
      }
  }
  