@Test
public void maxObjects() throws NoSuchFieldException, IllegalAccessException, AttributeNotFoundException {

    setOptionsViaReflection("maxObjects",1);
    Map<String,Object> result = (Map) converter.extractObject(new InnerValueTestBean("foo", "bar", "baz"), new Stack<String>(), true);
    boolean found = false;
    for (Object val : result.values()) {
        if (val instanceof String) {
            found = ((String) val).matches("^\\[.*(limit).*\\]$");
        }
    }
    assertTrue(found);
}