//Given
final Insert statement = insertInto("test").value("id", bindMarker("id"));
statement.setConsistencyLevel(ConsistencyLevel.ALL);
statement.setSerialConsistencyLevel(ConsistencyLevel.LOCAL_SERIAL);
final NativeStatementWrapper wrapper = new NativeStatementWrapper(NativeQueryLog.class, statement, new Object[] { 10L }, Optional.<CASResultListener>absent());
final ByteBuffer[] boundValues = new SimpleStatement("select", 10L).getValues();
//When
final SimpleStatement actual = (SimpleStatement)wrapper.buildParameterizedStatement();
//Then
assertThat(actual.getQueryString()).isEqualTo(statement.getQueryString());
assertThat(actual.getConsistencyLevel()).isEqualTo(ConsistencyLevel.ALL);
assertThat(actual.getSerialConsistencyLevel()).isEqualTo(ConsistencyLevel.LOCAL_SERIAL);
assertThat(actual.getValues()).hasSize(1);
assertThat(actual.getValues()).isEqualTo(boundValues);
}