CarbonMetadata { public CarbonTable getCarbonTable(String tableUniqueName) { return tableInfoMap.get(convertToLowerCase(tableUniqueName)); } private  CarbonMetadata(); static CarbonMetadata getInstance(); void removeTable(String tableUniquName); void addCarbonTable(CarbonTable carbonTable); void loadTableMetadata(TableInfo tableInfo); CarbonTable getCarbonTable(String tableUniqueName); int getNumberOfTables(); String convertToLowerCase(String table); CarbonDimension getCarbonDimensionBasedOnColIdentifier(CarbonTable carbonTable,
      String columnIdentifier);  }
@Test public void testGetCarbonTableReturingProperCarbonTable() { assertTrue(null != carbonMetadata.getCarbonTable(tableUniqueName)); }
@Test public void testGetCarbonTableReturingNullWhenInvalidNameIsPassed() { assertTrue(null == carbonMetadata.getCarbonTable("notpresent")); }
@Test public void testGetCarbonTableReturingProperTableWithProperDimensionCount() { assertEquals(1, carbonMetadata.getCarbonTable(tableUniqueName).getNumberOfDimensions("carbonTestTable")); }
@Test public void testGetCarbonTableReturingProperTableWithProperMeasureCount() { assertEquals(1, carbonMetadata.getCarbonTable(tableUniqueName).getNumberOfMeasures("carbonTestTable")); }
@Test public void testGetCarbonTableReturingProperTableWithProperDatabaseName() { assertEquals("carbonTestDatabase", carbonMetadata.getCarbonTable(tableUniqueName).getDatabaseName()); }
@Test public void testGetCarbonTableReturingProperTableWithProperFactTableName() { assertEquals("carbonTestTable", carbonMetadata.getCarbonTable(tableUniqueName).getFactTableName()); }
@Test public void testGetCarbonTableReturingProperTableWithProperTableUniqueName() { assertEquals("carbonTestDatabase_carbonTestTable", carbonMetadata.getCarbonTable(tableUniqueName).getTableUniqueName()); }