### Question:
Catalogs { public static Table loadTable(Configuration conf) { return loadTable(conf, conf.get(InputFormatConfig.TABLE_IDENTIFIER), conf.get(InputFormatConfig.TABLE_LOCATION)); } private  Catalogs(); static Table loadTable(Configuration conf); static Table loadTable(Configuration conf, Properties props); static Table createTable(Configuration conf, Properties props); static boolean dropTable(Configuration conf, Properties props);  }### Answer:
@Test public void testLoadTableFromLocation() throws IOException { AssertHelpers.assertThrows( "Should complain about table location not set", IllegalArgumentException.class, "location not set", () -> Catalogs.loadTable(conf)); HadoopTables tables = new HadoopTables(); Table hadoopTable = tables.create(SCHEMA, temp.newFolder("hadoop_tables").toString()); conf.set(InputFormatConfig.TABLE_LOCATION, hadoopTable.location()); Assert.assertEquals(hadoopTable.location(), Catalogs.loadTable(conf).location()); }