@Test
@Interval(value = "${locked.interval}")

public void shouldResolveProperty() {
  assertThat(intervalConverter.toMillis(new Object() {}.getClass().getEnclosingMethod().getAnnotation(Interval.class)))
    .isEqualTo(10);
}