@Test(expected=IllegalStateException.class)
public void forgettingToCallInitComponentsCausesException() {

    GuiActionRunner.execute(new GuiTask() {
        @Override
        protected void executeInEDT() throws Throwable {
            MockDialog dialog = new MockDialog(TITLE);
            dialog.setVisible(true);
        }
    });
}