String format(Method method) {
        String signature = method.toGenericString();
        Matcher matcher = METHOD_PATTERN.matcher(signature);
        if (matcher.find()) {
            String qc = matcher.group(3);
            String m = matcher.group(4);
            String qa = matcher.group(5);

            return format.format(new Object[] {
                    qc,
                    m,
                    qa,
            });
        } else {
            throw new CucumberBackendException("Cucumber bug: Couldn't format " + signature);
        }
    }
@Test
    void shouldUseSimpleFormatWhenMethodHasException() {
        assertThat(MethodFormat.FULL.format(methodWithoutArgs),
            startsWith("io.cucumber.java.MethodFormatTest.methodWithoutArgs()"));
    }