ConfigurableConsistencyLevel implements ConsistencyLevelPolicy { @Override public HConsistencyLevel get(OperationType op) { return (op == OperationType.READ) ? defaultReadConsistencyLevel : defaultWriteConsistencyLevel; }  @Override HConsistencyLevel get(OperationType op); @Override HConsistencyLevel get(OperationType op, String cfName); void setReadCfConsistencyLevels(Map<String, HConsistencyLevel> columnFamilyConsistencyLevels); void setWriteCfConsistencyLevels(Map<String, HConsistencyLevel> columnFamilyConsistencyLevels); void setConsistencyLevelForCfOperation(HConsistencyLevel consistencyLevel,
      String columnFamily,
      OperationType operationType); void setDefaultReadConsistencyLevel(HConsistencyLevel defaultReadConsistencyLevel); void setDefaultWriteConsistencyLevel(HConsistencyLevel defaultWriteConsistencyLevel);  }
@Test public void testReadWriteSame() { assertEquals(HConsistencyLevel.ONE, configurableConsistencyLevel.get(OperationType.READ, "MyColumnFamily")); }