@Test
public void testSuccessfulAuthentication() {
String[] grants = {"tester", "insight"};
Authentication token = new TestingAuthenticationToken("testSuccessfulAuthentication", "shir", grants);
AuthenticationManager testManager = new AuthenticationTestManager(false);
Authentication result = testManager.authenticate(token);
assertNotNull("No authentication result", result);
assertSame("Mismatched authentication instances equality", token, result);
assertOperationResult(result, Arrays.asList(grants));
}