public void testValidAuthentication()
throws Exception
{
SecuritySystem plexusSecurity = this.lookup(SecuritySystem.class);
AuthenticationToken token = new UsernamePasswordToken("admin-simple", "admin123");
AuthenticationInfo authInfo = plexusSecurity.authenticate(token);
// check
Assert.assertNotNull(authInfo);
}