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