### Question:
ExamplePlugin extends DefaultSessionPlugin { public PluginSessionCallback sessionStarted(ISession session) { addTreeNodeMenuActionsForDB2(session); IMessageHandler messageHandler = session.getApplication().getMessageHandler(); ExampleSqlExecutionListener sqlExecutionListener = new ExampleSqlExecutionListener(messageHandler); session.getSessionSheet().getSQLPaneAPI().addSQLExecutionListener(sqlExecutionListener); session.setExceptionFormatter(new ExampleExceptionFormatter()); return new PluginSessionCallbackAdaptor(this); }  String getInternalName(); String getDescriptiveName(); String getVersion(); String getAuthor(); String getChangeLogFileName(); String getHelpFileName(); String getLicenceFileName(); String getContributors(); IGlobalPreferencesPanel[] getGlobalPreferencePanels(); synchronized void initialize(); PluginSessionCallback sessionStarted(ISession session);  }### Answer:
@Test public void testSessionStarted() throws Exception { classUnderTest.initialize(); ((ExamplePlugin) classUnderTest).sessionStarted(mockSession); }