};
ConnectionContext ctx = new ConnectionContext();
ConnectionInfo info = new ConnectionInfo();
SubjectConnectionReference conn = new SubjectConnectionReference(ctx, info, env, subject);
SubjectSecurityContext ssc = new SubjectSecurityContext(conn);
ctx.setSecurityContext(ssc);
filter.removeConnection(ctx, info, null);
assertTrue(invoked[0]);