### Question:
BackupTool { static void exitFailure( String msg ) { System.out.println( msg ); System.exit( 1 ); } BackupTool( BackupProtocolService backupProtocolService, PrintStream systemOut ); static void main( String[] args ); static final String DEFAULT_SCHEME; }### Answer:
@Test public void shouldToolFailureExceptionCauseExitCode() { systemExitRule.expectExit( 1 ); BackupTool.exitFailure( "tool failed" ); }