@SuppressFBWarnings(justification = "Accepting that this is a bad practice - but made more sense in this use case",
            value = {"NP_BOOLEAN_RETURN_NULL"})
    public Boolean hasOption(String option) {
        return (line != null && line.hasOption(option)) ? true : null;
    }
@Test
    public void testHasOption() throws ParseException {

        String[] args = {"--scan", "missing.file", "--artifactoryUsername", "blue42", "--project", "test"};

        CliParser instance = new CliParser(getSettings());
        try {
            instance.parse(args);
            Assert.fail("invalid scan argument should have caused an exception");
        } catch (FileNotFoundException ex) {
            Assert.assertTrue(ex.getMessage().contains("Invalid 'scan' argument"));
        }

        Boolean result = instance.hasOption("missingOption");
        Assert.assertNull(result);

        Boolean expResult = true;
        result = instance.hasOption(CliParser.ARGUMENT.PROJECT);
        Assert.assertEquals(expResult, result);
    }