package org.broadinstitute.hellbender;

import org.broadinstitute.hellbender.exceptions.UserException;
import org.broadinstitute.hellbender.utils.test.BaseTest;
import org.testng.annotations.Test;

public final class MainTest extends CommandLineProgramTest{

    @Test(expectedExceptions = UserException.class)
    public void testCommandNotFoundThrows(){
        this.runCommandLine(new String[]{"Brain"});
    }

    @Test
    public void testPrintReadsVersion() {
        String out = BaseTest.captureStderr(() -> Main.main(new String[]{"PrintReads", "--version"}));
        BaseTest.assertContains(out, "Version:");
    }
}

@@ -410,219 +410,7 @@
    %7D
-%0A%0A    @Test%0A    public void testPrintReadsVersion() %7B%0A        String out = BaseTest.captureStderr(() -%3E Main.main(new String%5B%5D%7B%22PrintReads%22, %22--version%22%7D));%0A        BaseTest.assertContains(out, %22Version:%22);%0A    %7D
 %0A%7D%0A

remove bad test that was causing tests to abort (#2262)