ImpersonationCredentials implements Credentials { public AuthInfo getImpersonatorInfo() { return authInfo; } ImpersonationCredentials(Credentials baseCredentials, AuthInfo authInfo); Credentials getBaseCredentials(); AuthInfo getImpersonatorInfo();  }
@Test public void testGetAuthInfo() { assertSame(info, new ImpersonationCredentials(new Credentials() {}, info).getImpersonatorInfo()); }