Matching on Inner Classes and Inner Interfaces You can match on inner classes and inner interfaces by adding a $ sign after the class name. For example, you could specify the following for the class name: com.my.package.OuterClass$InnerClass