@Test public void testDeny() throws Exception { try (DRPC server = new DRPC(new StormMetricsRegistry(), new DenyAuthorizer(), 100)) { assertThrows(() -> server.executeBlocking("testing", "test"), AuthorizationException.class); assertThrows(() -> server.fetchRequest("testing"), AuthorizationException.class); } }