@Test
    @Configuration("{\"timeoutConnect\" : \"1\", \"timeoutRead\" : \"2\" }")
    public void shouldReturnConfigBeanWithValue_onParseConfiguration() throws PolicyFailureError, Throwable {
        Configuration config = this.getClass()
                .getMethod("shouldReturnConfigBeanWithValue_onParseConfiguration")
                .getAnnotation(Configuration.class);

        // WHEN parse the configuration
        TimeoutConfigBean policyConfigBean = timeoutPolicy.parseConfiguration(config.value());

        // THEN the bean's value equals the test config
        HashMap<?, ?> configMap = new ObjectMapper().readValue(config.value(), HashMap.class);
        assertEquals(configMap.get("timeoutConnect"), policyConfigBean.getTimeoutConnect());
        assertEquals(configMap.get("timeoutRead"), policyConfigBean.getTimeoutRead());
    }
Control the parse system for the configuration
plugins/timeout-policy/src/test/java/io/apiman/plugins/timeoutpolicy/TimeoutPolicyTest.java