@Test
public void should_bind_for_simple_counter_select() throws Exception {
Long primaryKey = RandomUtils.nextLong(0,Long.MAX_VALUE);
PropertyMeta counterMeta = mock(PropertyMeta.class, RETURNS_DEEP_STUBS);
when(context.getPrimaryKey()).thenReturn(primaryKey);
when(overrider.getWriteLevel(context)).thenReturn(ALL);
when(entityMeta.getClassName()).thenReturn("CompleteBean");
when(idMeta.forTranscoding().forceEncodeToJSONForCounter(primaryKey)).thenReturn(primaryKey.toString());
when(counterMeta.getCQL3ColumnName()).thenReturn("count");
when(ps.bind("CompleteBean", primaryKey.toString(), "count")).thenReturn(bs);
BoundStatementWrapper actual = binder.bindForSimpleCounterSelect(context, ps, counterMeta, ALL);