}
@Test
public void should_return_empty_map_when_table_meta_is_not_found() throws Exception {
//Given
EntityMeta meta = mock(EntityMeta.class, RETURNS_DEEP_STUBS);
KeyspaceMetadata ksMeta = mock(KeyspaceMetadata.class, RETURNS_DEEP_STUBS);
when(meta.config().getKeyspaceName()).thenReturn("ks");
when(meta.config().getTableName()).thenReturn("table");
when(meta.config().getQualifiedTableName()).thenReturn("ks.table");
when(cluster.getMetadata().getKeyspace("ks")).thenReturn(ksMeta);
when(ksMeta.getTable("table")).thenReturn(null);