void () { String in = """ class A implements Cloneable {} class B implements Serializable {} class C implements Cloneable,Serializable {} class C2 implements Serializable,Cloneable {} class E extends B implements Cloneable {} class F extends A implements Serializable {} class D extends C {}"""; assertEquals("search interface within hierarchy", 5, findMatchesCount(in, "class 'A implements '_B:*Serializable , '_C:*Cloneable {}")); }