public void should_exception_when_clustered_counter_entity_has_only_static_columns() throws Exception {
//Given
PropertyMeta idMeta = mock(PropertyMeta.class, RETURNS_DEEP_STUBS);
PropertyMeta pm1 = mock(PropertyMeta.class, RETURNS_DEEP_STUBS);
PropertyMeta pm2 = mock(PropertyMeta.class, RETURNS_DEEP_STUBS);
EntityMeta entityMeta = mock(EntityMeta.class, RETURNS_DEEP_STUBS);
when(entityMeta.getPropertyMetas().values()).thenReturn(Arrays.asList(pm1,pm2));
when(entityMeta.getAllMetasExceptId().size()).thenReturn(2);
when(entityMeta.getClassName()).thenReturn("myEntity");
when(entityMeta.structure().isClusteredCounter()).thenReturn(true);
when(idMeta.structure().isClustered()).thenReturn(true);
when(pm1.structure().isStaticColumn()).thenReturn(true);
when(pm2.structure().isStaticColumn()).thenReturn(true);
when(pm1.structure().isCounter()).thenReturn(true);
when(pm2.structure().isCounter()).thenReturn(true);