HiddenTables { public static boolean isHidden(TableReference tableReference) { return CASSANDRA_TABLES.contains(tableReference) || AtlasDbConstants.DEPRECATED_SWEEP_TABLES_WITH_NO_METADATA.contains(tableReference) || tableReference.getTablename().startsWith(AtlasDbConstants.LOCK_TABLE_PREFIX); } private  HiddenTables(); static boolean isHidden(TableReference tableReference);  }
@Test public void shouldSayTimestampIsHidden() { assertThat(HiddenTables.isHidden(AtlasDbConstants.TIMESTAMP_TABLE), is(true)); }
@Test public void shouldSayMetadataIsHidden() { assertThat(HiddenTables.isHidden(AtlasDbConstants.DEFAULT_METADATA_TABLE), is(true)); }
@Test public void shouldSayAnOldStyleLocksTableIsHidden() { assertThat(HiddenTables.isHidden(TableReference.createWithEmptyNamespace("_locks")), is(true)); }
@Test public void shouldSayANewStyleLocksTableIsHidden() { assertThat(HiddenTables.isHidden(TableReference.createWithEmptyNamespace("_locks_aaaa_123")), is(true)); }
@Test public void shouldSayANamespacedTableIsNotHidden() { assertThat(HiddenTables.isHidden(TableReference.createFromFullyQualifiedName("namespace.table")), is(false)); }
@Test public void shouldSayANonNamespacedVisibleTableIsNotHidden() { assertThat(HiddenTables.isHidden(TableReference.createWithEmptyNamespace("table")), is(false)); }
@Test public void shouldSayPersistedLocksTableIsHidden() { assertThat(HiddenTables.isHidden(AtlasDbConstants.PERSISTED_LOCKS_TABLE), is(true)); }