@Test
public void testShouldAdaptConsistencyLevels() {

  assertThat(adapt(ConsistencyLevel.ANY)).isEqualTo(ANY);
  assertThat(adapt(ConsistencyLevel.ONE)).isSameAs(ONE);
  assertThat(adapt(ConsistencyLevel.TWO)).isSameAs(TWO);
  assertThat(adapt(ConsistencyLevel.THREE)).isSameAs(THREE);
  assertThat(adapt(ConsistencyLevel.QUORUM)).isSameAs(QUORUM);
  assertThat(adapt(ConsistencyLevel.ALL)).isSameAs(ALL);
  assertThat(adapt(ConsistencyLevel.LOCAL_QUORUM)).isSameAs(LOCAL_QUORUM);
  assertThat(adapt(ConsistencyLevel.EACH_QUORUM)).isSameAs(EACH_QUORUM);
  assertThat(adapt(ConsistencyLevel.SERIAL)).isSameAs(SERIAL);
  assertThat(adapt(ConsistencyLevel.LOCAL_SERIAL)).isSameAs(LOCAL_SERIAL);
  assertThat(adapt(ConsistencyLevel.LOCAL_ONE)).isSameAs(LOCAL_ONE);
}