6465666768697071727374
DefaultEnvironment env = new DefaultEnvironment(); filter.setNext(broker); filter.setEnvironment(env); Subject subject = new SubjectAdapter() { @Override public void logout() { throw new RuntimeException("Simulated failure."); } };