### Question:
YamlMetricsAttributeTableLoader { public Table<String, NewRelicMetric, Boolean> loadTable(@Nonnull InputStream inputStream) throws IOException { Map<String, Map<NewRelicMetric, Boolean>> m = objectReader.forType(new TypeReference<Map<String, Map<NewRelicMetric, Boolean>>>() {}) .readValue(inputStream); return table(m); } YamlMetricsAttributeTableLoader();  YamlMetricsAttributeTableLoader(@Nonnull ObjectReader objectReader); Table<String, NewRelicMetric, Boolean> loadTable(@Nonnull InputStream inputStream);  }### Answer:
@Test public void getReturnTableReadFromFile() throws Exception { YamlMetricsAttributeTableLoader loader = new YamlMetricsAttributeTableLoader(); InputStream stream = getClass().getResourceAsStream("testing-config.yml"); Table<String, TableMetricAttributeFilter.NewRelicMetric, Boolean> table = loader.loadTable(stream); assertThat(table.get("name2", TableMetricAttributeFilter.NewRelicMetric.TIMER_MAX), equalTo(true)); assertThat(table.get("name1", TableMetricAttributeFilter.NewRelicMetric.COUNTER_COUNT), equalTo(true)); }