@Test
public void testSetAssociationFailsWithNonCurrentAssociate() {
// version should be different, causing concurrency exception
personAdapter.setOptimisticLock(new TestProxyVersion(6));
try {
final SetAssociationRequest request =
new SetAssociationRequest(authenticationSession, "director", movieData, personData);
server.setAssociation(request);
fail();
} catch (final ConcurrencyException expected) {
}
}