new MockHttpServletRequest( "GET",
"http://localhost:9080/pentaho-di/kettle/executeTrans/?rep=dev&userid=admin&password=password&trans=/home/admin/Trans1" );
request.addParameter( "userid", "admin" );
request.addParameter( "password", "password" );
filter.doFilter( request, new MockHttpServletResponse(), new MockFilterChain() );
UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken( "admin", "password" );
authRequest.setDetails( new WebAuthenticationDetails( request ) );
verify( authManagerMock ).authenticate( Mockito.eq( authRequest ) );
}