### Question:
DB2Plugin extends DefaultSessionPlugin { public PluginSessionCallback sessionStarted(final ISession session) { if (!isPluginSession(session)) { return null; } GUIUtils.processOnSwingEventThread(new Runnable() { public void run() { updateTreeApi(session); } }); try { if (JCC_DRIVER_NAME.equals(session.getMetaData().getJDBCMetaData().getDriverName())) { session.setExceptionFormatter(new DB2JCCExceptionFormatter()); } } catch (SQLException e) { s_log.error("Problem installing exception formatter: " + e.getMessage()); } return new PluginSessionCallbackAdaptor(this); }  String getInternalName(); String getDescriptiveName(); String getVersion(); String getAuthor(); String getContributors(); String getChangeLogFileName(); String getHelpFileName(); String getLicenceFileName(); synchronized void load(IApplication app); synchronized void initialize(); void unload(); boolean allowsSessionStartedInBackground(); PluginSessionCallback sessionStarted(final ISession session); static final String JCC_DRIVER_NAME; }### Answer:
@Test public void testSessionStarted() throws SQLException { when(mockDatabaseMetaData.getDriverName()).thenReturn(DB2Plugin.JCC_DRIVER_NAME); PluginSessionCallback result = ((DB2Plugin) super.classUnderTest).sessionStarted(mockSession); assertNotNull(result); }