@Test
public void testShouldExtractConsistencyLevels() {

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