@Test
public void testBadPattern() {

    configuration.setProperty("object.a.pattern", "a");
    configuration.setProperty("object.a.limit", "200");
    assertThat(resolver.resolve(new MyObject("a")).getLimit()).isEqualTo(200);
    configuration.setProperty("object.a.pattern", "*"); // bad regexp
    assertThat(resolver.resolve(new MyObject("a")).getLimit()).isEqualTo(200);
}