@Test
public void shouldRequireValidPatternInConfiguration() {

  try {
    RegexExtractorInterceptorMillisSerializer fixture =
        new RegexExtractorInterceptorMillisSerializer();
    Context context = new Context();
    context.put("pattern", "ABCDEFG");
    fixture.configure(context);
    Assert.fail();
  } catch (IllegalArgumentException ex) {
    // Expected...
  }
}