### Question:
AbstractToolContainer implements ToolContainer { public void init() throws ToolException { if (toolspec == null) { Message message = new Message("TOOLSPEC_NOT_INITIALIZED", LOG); LOG.log(Level.SEVERE, message.toString()); throw new ToolException(message); } } AbstractToolContainer();  AbstractToolContainer(ToolSpec ts); void setArguments(String[] args); void parseCommandLine(); void setMode(String[] args); void init(); CommandDocument getCommandDocument(); CommandLineParser getCommandLineParser(); void redirectOutput(); boolean isQuietMode(); boolean isVerboseMode(); String[] getArgument(); OutputStream getOutOutputStream(); void setOutOutputStream(OutputStream outOutputStream); OutputStream getErrOutputStream(); void setErrOutputStream(OutputStream errOutputStream); void setContext(ToolContext c); ToolContext getContext(); void execute(boolean exitOnFinish); void tearDown(); Bus getBus();  }### Answer:
@Test public void testInit() { try { dummyTool.init(); } catch (ToolException e) { assertEquals("Tool specification has to be set before initializing", e.getMessage()); return; } }
@Test public void testInit() { try { dummyTool.init(); } catch (ToolException e) { assertEquals("Tool specification has to be set before initializing", e.getMessage()); return; } assertTrue(true); }