Duration getLockAtMostFor(AnnotationData annotation) {
        return getValue(
                annotation.getLockAtMostFor(),
                annotation.getLockAtMostForString(),
                this.defaultLockAtMostFor,
                "lockAtMostForString");
    }
@Test
    public void shouldLockForDefaultTimeIfNoAnnotation() throws NoSuchMethodException {
        SpringLockConfigurationExtractor.AnnotationData annotation =
                getAnnotation("annotatedMethodWithoutLockAtMostFor");
        TemporalAmount lockAtMostFor = extractor.getLockAtMostFor(annotation);
        assertThat(lockAtMostFor).isEqualTo(DEFAULT_LOCK_TIME);
    }