SecureFilter implements Filter { @Inject public SecureFilter(Ninja ninja) { this.ninja = ninja; } @Inject  SecureFilter(Ninja ninja); @Override Result filter(FilterChain chain, Context context); static final String USERNAME; }
@Test public void testSecureFilter() { when(context.getSession()).thenReturn(null); secureFilter.filter(filterChain, context); verifyZeroInteractions(filterChain); }