*/
@Test
public void testGetAuthoritiesNonNull()
{
GrantedAuthority[] auths = new GrantedAuthority[1];
GrantedAuthority gaMock = context.mock(GrantedAuthority.class);
auths[0] = gaMock;
ExtendedUserDetailsImpl sut = new ExtendedUserDetailsImpl(person, null, auths, null);
assertEquals(1, sut.getAuthorities().length);
assertEquals(gaMock, sut.getAuthorities()[0]);
}