### Question:
PatternParam { ExcludeTable toExcludeTable() { ExcludeTable table = new ExcludeTable(); table.setPattern(pattern); return table; } PatternParam();   PatternParam(String pattern); void pattern(String pattern); String getPattern(); void setPattern(String pattern);  }### Answer:
@Test public void toExcludeTable() throws Exception { ExcludeTable table = param.toExcludeTable(); assertNotNull(table); assertEquals("test", table.getPattern()); }