@Test
public void testSetKeyStore() throws Exception {

    OAuthCertBoundJwtAccessTokenAuthority authority = new OAuthCertBoundJwtAccessTokenAuthority();
    authority.setKeyStore(authority);
    Field f = authority.getClass().getDeclaredField("keyStore");
    f.setAccessible(true);
    assertSame(f.get(authority), authority);
}