}
@Test
public void testStoreOAuth2Accessor_1() throws Exception {
final OAuth2Store store = MockUtils.getDummyStore(this.cache, null, null);
OAuth2Accessor accessor = new BasicOAuth2Accessor("XXX", "YYY", "ZZZ", "", false, store, "AAA");
final Integer result = this.cache.storeOAuth2Accessor(accessor);
Assert.assertEquals(-1664180105, result.intValue());
accessor = this.cache.getOAuth2Accessor(result);
Assert.assertNotNull(accessor);
Assert.assertEquals("XXX", accessor.getGadgetUri());
Assert.assertEquals("YYY", accessor.getServiceName());
Assert.assertEquals("ZZZ", accessor.getUser());
Assert.assertEquals("", accessor.getScope());
Assert.assertEquals(false, accessor.isAllowModuleOverrides());
Assert.assertEquals("AAA", accessor.getRedirectUri());
Assert.assertEquals("-1664180105", accessor.getState());
}