@Test
public void testObjectOverrides() {

    configuration.setProperty("object.a.pattern", "a");
    configuration.setProperty("object.a.limit", "200");
    configuration.setProperty("object.b.pattern", "b");
    configuration.setProperty("object.b.limit", "300");
    assertThat(resolver.resolve(new MyObject("a")).getLimit()).isEqualTo(200);
    assertThat(resolver.resolve(new MyObject("b")).getLimit()).isEqualTo(300);
    assertThat(resolver.resolve(new MyObject("x")).getLimit()).isEqualTo(100);
}