new MBeanPermission("mx4j.Foo$Inner#Bar[d:k=v]", "addNotificationListener, removeNotificationListener");
}
public void testMBeanPermissionWildcardAlwaysImplies() throws Exception
{
MBeanPermission wild = new MBeanPermission("*", "*");
shouldImply(wild, wild);
shouldImply(new MBeanPermission("*[*:*]", "*"), wild);
shouldImply(wild, new MBeanPermission("*[*:*]", "*"));
shouldImply(new MBeanPermission("*#*[*:*]", "*"), wild);
shouldImply(wild, new MBeanPermission("*#*[*:*]", "*"));
implies(wild, new MBeanPermission("com.*", "*"));
shouldImply(wild, new MBeanPermission("com.package.MyClass", "*"));
shouldImply(wild, new MBeanPermission("com.package.MyClass#Attribute", "*"));
shouldImply(wild, new MBeanPermission("com.package.MyClass#Attribute[d:k=v]", "*"));
shouldImply(wild, new MBeanPermission("com.package.MyClass#Attribute[d:k=v]", "getObjectInstance"));
shouldImply(wild, new MBeanPermission("-#-[-]", "*"));
}