@Test
public void testCustomRestrictor() throws Exception {

    Configuration config = getConfig(ConfigKey.RESTRICTOR_CLASS, "org.jolokia.restrictor.TestRestrictor");
    Restrictor restrictor = RestrictorFactory.createRestrictor(config, dummyLogHandler);
    assertTrue(restrictor.getClass().isAssignableFrom(TestRestrictor.class));
}