### Question:
TableProviderFactory { public Map<TableName, TableProvider> getTableProviders() { return tableProviders; } TableProviderFactory(); @VisibleForTesting protected  TableProviderFactory(AmazonEC2 ec2, AmazonElasticMapReduce emr, AmazonRDS rds, AmazonS3 amazonS3); Map<TableName, TableProvider> getTableProviders(); Map<String, List<TableName>> getSchemas();  }### Answer:
@Test public void getTableProviders() { int count = 0; for (Map.Entry<TableName, TableProvider> next : factory.getTableProviders().entrySet()) { assertEquals(next.getKey(), next.getValue().getTableName()); assertEquals(next.getKey().getSchemaName(), next.getValue().getSchema()); count++; } assertEquals(expectedTables, count); }