@Test public void shouldAddErrorToItsErrorCollection() { IgnoredFiles ignore = new IgnoredFiles("helper/*.*"); ignore.addError("pattern", "not allowed"); assertThat(ignore.errors().on("pattern"), is("not allowed")); }