@Test
public void defaultBlackList() throws Exception {

    String blackListedUrl = "service:jmx:rmi:///jndi/ldap://localhost:9092/jmxrmi";
    JmxReadRequest req = preparePostReadRequestWithServiceUrl(blackListedUrl, null);
    try {
        dispatcher.dispatchRequest(req);
        fail("Exception should have been thrown for " + blackListedUrl);
    } catch (SecurityException exp) {
        assertTrue(exp.getMessage().contains(blackListedUrl));
    }
}