### Question:
TagFilter implements Filter { public String getTagRegex() { return tagRegex; } TagFilter(String tagRegex);  TagFilter(Pattern pattern); @Override boolean skipLog(int priority, String tag, String message, Throwable t); @Override boolean isLoggable(int priority, String tag); String getTagRegex(); Pattern getPattern();  }### Answer:
@Test public void getTagRegex() { filter = new TagFilter("Filter.*"); assertThat(filter.getTagRegex(), is("Filter.*")); filter = new TagFilter(Pattern.compile("Filter.*")); assertThat(filter.getTagRegex(), is("Filter.*")); }