void () { CommandTestTools.initFileType(getTestRootDisposable()); final CommandLineFile file = CommandTestTools.createFileByText(myFixture, "command foo bar spam eggs"); final ValidationResult validationResult = file.getValidationResult(); assert validationResult != null : "validation failed"; Assert.assertNull("Argument returned while should not", validationResult.getNextArg()); }