DbDeploy { public String getWelcomeString() { String version = getClass().getPackage().getImplementationVersion(); return "dbdeploy " + version; }  void setDriver(String driver); void setUrl(String url); void setUserid(String userid); void setPassword(String password); void setScriptdirectory(File scriptdirectory); void setOutputfile(File outputfile); void setDbms(String dbms); void setLastChangeToApply(Long lastChangeToApply); void setUndoOutputfile(File undoOutputfile); void setChangeLogTableName(String changeLogTableName); void setEncoding(String encoding); void setLineEnding(LineEnding lineEnding); void go(); String getUserid(); String getUrl(); String getPassword(); File getScriptdirectory(); File getOutputfile(); File getUndoOutputfile(); String getDbms(); Long getLastChangeToApply(); String getDriver(); void setTemplatedir(File templatedir); File getTemplatedir(); String getChangeLogTableName(); String getDelimiter(); void setDelimiter(String delimiter); DelimiterType getDelimiterType(); void setDelimiterType(DelimiterType delimiterType); String getWelcomeString(); String getEncoding(); LineEnding getLineEnding();  }
@Test public void shouldReportVersionNumberWithoutCrashing() { assertThat(dbDeploy.getWelcomeString(), startsWith("dbdeploy")); }