### Question:
NewTableConfiguration { public NewTableConfiguration enableSummarization(SummarizerConfiguration... configs) { requireNonNull(configs); Map<String,String> tmp = SummarizerConfigurationUtil.toTablePropertiesMap(Arrays.asList(configs)); checkDisjoint(properties, tmp, "summarizer"); summarizerProps = tmp; return this; }  NewTableConfiguration setTimeType(TimeType tt); TimeType getTimeType(); NewTableConfiguration withoutDefaultIterators(); NewTableConfiguration createOffline(); InitialTableState getInitialTableState(); NewTableConfiguration setProperties(Map<String,String> props); Map<String,String> getProperties(); Collection<Text> getSplits(); NewTableConfiguration enableSampling(SamplerConfiguration samplerConfiguration); NewTableConfiguration enableSummarization(SummarizerConfiguration... configs); NewTableConfiguration setLocalityGroups(Map<String,Set<Text>> groups); NewTableConfiguration withSplits(final SortedSet<Text> splits); NewTableConfiguration attachIterator(IteratorSetting setting); NewTableConfiguration attachIterator(IteratorSetting setting,
      EnumSet<IteratorScope> scopes);  }### Answer:
@Test public void testEnableSummarization() { SummarizerConfiguration summarizerConfig1 = SummarizerConfiguration .builder("com.test.summarizer").setPropertyId("s1").addOption("opt1", "v1").build(); NewTableConfiguration ntcSummarization1 = new NewTableConfiguration().enableSummarization(summarizerConfig1); assertEquals("v1", ntcSummarization1.getProperties().get("table.summarizer.s1.opt.opt1")); assertEquals("com.test.summarizer", ntcSummarization1.getProperties().get("table.summarizer.s1")); Class<? extends Summarizer> builderClass = FamilySummarizer.class; assertTrue(Summarizer.class.isAssignableFrom(builderClass)); SummarizerConfiguration summarizerConfig2 = SummarizerConfiguration.builder(builderClass) .setPropertyId("s2").addOption("opt2", "v2").build(); NewTableConfiguration ntcSummarization2 = new NewTableConfiguration().enableSummarization(summarizerConfig2); assertEquals("v2", ntcSummarization2.getProperties().get("table.summarizer.s2.opt.opt2")); assertEquals(builderClass.getName(), ntcSummarization2.getProperties().get("table.summarizer.s2")); NewTableConfiguration ntcSummarization3 = new NewTableConfiguration().enableSummarization(summarizerConfig1, summarizerConfig2); assertEquals("v1", ntcSummarization1.getProperties().get("table.summarizer.s1.opt.opt1")); assertEquals("v2", ntcSummarization2.getProperties().get("table.summarizer.s2.opt.opt2")); assertEquals("com.test.summarizer", ntcSummarization3.getProperties().get("table.summarizer.s1")); assertEquals(builderClass.getName(), ntcSummarization3.getProperties().get("table.summarizer.s2")); }