Map<String, Object> expectedCurrentValues = ImmutableMap.<String, Object>of("id", 10L, "[applied]", false, "consistency_level", EACH_QUORUM.name(), "name", "name");
manager.insert(entityWithEnum);
manager.insert(entityWithEnum, OptionsBuilder.ifNotExists().casResultListener(listener));
final CASResult casResult = atomicCASResult.get();
assertThat(casResult.operation()).isEqualTo(INSERT);
assertThat(casResult.currentValues()).isEqualTo(expectedCurrentValues);
assertThat(casResult.toString()).isEqualTo("CAS operation INSERT cannot be applied. Current values are: {[applied]=false, consistency_level=EACH_QUORUM, id=10, name=name}");
}