private AdminReadWritePolicy policy = new AdminReadWritePolicy();
public void testCheckAuthorization() throws NoSuchMethodException, MalformedObjectNameException {
Subject user = new Subject();
Subject admin = new Subject();
admin.getPrincipals().add(new GroupPrincipal("admin"));
Method hashCode = Object.class.getMethod("hashCode");
Method isRegistered = MBeanServer.class.getMethod("isRegistered", ObjectName.class);
Method getAttribute = MBeanServer.class.getMethod("getAttribute", ObjectName.class, String.class);
Method queryNames = MBeanServer.class.getMethod("queryNames", ObjectName.class, QueryExp.class);