void parseFistline(Modification modification, String line, ConsoleResult result) throws P4OutputParseException {
        Pattern pattern = Pattern.compile(FIRST_LINE_PATTERN);
        Matcher matcher = pattern.matcher(line);
        if (matcher.find()) {
            modification.setRevision(matcher.group(1));
            modification.setUserName(matcher.group(2));
            try {
                modification.setModifiedTime(new SimpleDateFormat(P4_DATE_PATTERN).parse(matcher.group(3)));
            } catch (ParseException e) {
                throw bomb(e);
            }
        } else {
            LOG.warn("Could not parse P4 describe: {}", result.replaceSecretInfo(line));
            throw new P4OutputParseException("Could not parse P4 describe: " + result.replaceSecretInfo(line));
        }
    }
@Test
    void shouldThrowExceptionIfP4ReturnDifferentDateFormatWhenCannotParseFistLineOfP4Describe() {
        String output = "Change 2 on 08/08/19 by cceuser@connect4 'some modification message'";
        Modification modification = new Modification();
        try {
            parser.parseFistline(modification, output, new ConsoleResult(0, new ArrayList<>(), new ArrayList<>(), new ArrayList<>(), new ArrayList<>()));
        } catch (P4OutputParseException e) {
            assertThat(e.getMessage()).contains("Could not parse P4 describe:");

        }
    }