final RegularStatement statement = update("CompleteBean").with(set("name","Helen"))
.where(eq("id",entity.getId())).onlyIf(eq("name","Andrew"));
//When
final NativeQuery nativeQuery = manager.nativeQuery(statement,casResultListener(listener));
nativeQuery.execute();
//Then
final CASResult casResult = atomicCASResult.get();
assertThat(casResult).isNotNull();