2829303132333435363738
frame.setVisible(true); wrapper.clickButton("startGame.button"); verifyMocks(); JButton button = (JButton)wrapper.findComponent("startGame.button"); Ensure.that("Start Game", eq(button.getText())); frame.dispose(); } }