### Question:
CliOptions { public InputStream getPropertiesInputStream(String path) { return this.getClass().getResourceAsStream(path); }  OutputFormat getOutputFormat(); boolean isShowAvailableUpdates(); boolean isVerbose(); String appendFilePathIfNotPresent(@NonNull String updateCenter); @SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE") void showVersion(); boolean isShowHelp(); boolean isUseLatestSpecified(); boolean isSkipFailedPlugins(); boolean isUseLatestAll(); InputStream getPropertiesInputStream(String path); boolean isShowVersion();  }### Answer:
@Test public void showVersionErrorTest() throws CmdLineException { CliOptions cliOptionsSpy = spy(options); parser.parseArgument("--version"); doReturn(null).when(cliOptionsSpy).getPropertiesInputStream(any(String.class)); assertThatThrownBy(cliOptionsSpy::showVersion) .isInstanceOf(VersionNotFoundException.class); }