public static boolean needAdminPerm(Integer code) {
        return ADMIN_CODE.contains(code);
    }
@Test
    public void checkAdminCodeTest() {
        Set<Integer> code = new HashSet<>();
        code.add(RequestCode.UPDATE_AND_CREATE_TOPIC);
        code.add(RequestCode.UPDATE_BROKER_CONFIG);
        code.add(RequestCode.DELETE_TOPIC_IN_BROKER);
        code.add(RequestCode.UPDATE_AND_CREATE_SUBSCRIPTIONGROUP);
        code.add(RequestCode.DELETE_SUBSCRIPTIONGROUP);
        code.add(RequestCode.UPDATE_AND_CREATE_STATIC_TOPIC);
        code.add(RequestCode.UPDATE_AND_CREATE_ACL_CONFIG);
        code.add(RequestCode.DELETE_ACL_CONFIG);
        code.add(RequestCode.GET_BROKER_CLUSTER_ACL_INFO);

        for (int i = 0; i < 400; i++) {
            boolean boo = Permission.needAdminPerm(i);
            if (boo) {
                Assert.assertTrue(code.contains(i));
            }
        }
    }