StaticFunctionCall { public boolean matches(QualifiedName className, String memberName) { return functionName.equalsIgnoreCase(memberName) && callee.equals(className); } private  StaticFunctionCall(QualifiedName callee, String functionName); boolean matches(QualifiedName className, String memberName); static StaticFunctionCall staticFunctionCall(String qualifiedFunctionCall);  }
@Test public void matches() { assertThat(staticFunctionCall(A_B_C_DEF).matches(qualifiedName("A\\B\\C"), "def")).isTrue(); assertThat(staticFunctionCall(A_B_C_DEF).matches(qualifiedName("a\\b\\c"), "DEF")).isTrue(); assertThat(staticFunctionCall(A_B_C_DEF).matches(qualifiedName("A\\B\\C"), "ghi")).isFalse(); assertThat(staticFunctionCall(A_B_C_DEF).matches(qualifiedName("A\\B\\D"), "def")).isFalse(); }