@Test
@Locked(retry = @Interval("100"), timeout = @Interval("2000"))
public void shouldConstructCustomizedRetryTemplate() {

  final var locked = new Object() {}.getClass().getEnclosingMethod().getAnnotation(Locked.class);
  final var converter = new DefaultRetryTemplateConverter(intervalConverter);
  final var retryTemplate = converter.construct(locked);
  assertRetryTemplateConstruction(retryTemplate, 2000L, 100L);
}