@Test(expected = MessagingException.class)
@SuppressWarnings("unchecked")
public void storeAuthorizationEventOnFailingOS() throws Exception
{
ObjectStore<Serializable> failingOS = Mockito.mock(ObjectStore.class);
Mockito.doThrow(new ObjectStoreException())
.when(failingOS)
.store(Mockito.any(Serializable.class), Mockito.any(Serializable.class));
this.manager.setAccessTokenObjectStore(failingOS);
this.manager.storeAuthorizationEvent(this.event);
}