}
@Test
public void shouldMatchJavaFile() {
String javaFile = "org.foo.Bar";
assertThat(new IssuePattern("org.foo.Bar", "*").matchResource(javaFile)).isTrue();
assertThat(new IssuePattern("org.foo.*", "*").matchResource(javaFile)).isTrue();
assertThat(new IssuePattern("*Bar", "*").matchResource(javaFile)).isTrue();
assertThat(new IssuePattern("*", "*").matchResource(javaFile)).isTrue();
assertThat(new IssuePattern("org.*.?ar", "*").matchResource(javaFile)).isTrue();
assertThat(new IssuePattern("org.other.Hello", "*").matchResource(javaFile)).isFalse();
assertThat(new IssuePattern("org.foo.Hello", "*").matchResource(javaFile)).isFalse();
assertThat(new IssuePattern("org.*.??ar", "*").matchResource(javaFile)).isFalse();
assertThat(new IssuePattern("org.*.??ar", "*").matchResource(null)).isFalse();
assertThat(new IssuePattern("org.*.??ar", "*").matchResource("plop")).isFalse();
}