### Question:
PermJsonRpcMethods extends ApiGroupJsonRpcMethods { @Override protected Map<String, JsonRpcMethod> create() { return mapOf( new PermAddNodesToWhitelist(nodeWhitelistController), new PermAddNodesToAllowlist(nodeWhitelistController), new PermRemoveNodesFromWhitelist(nodeWhitelistController), new PermRemoveNodesFromAllowlist(nodeWhitelistController), new PermGetNodesWhitelist(nodeWhitelistController), new PermGetNodesAllowlist(nodeWhitelistController), new PermGetAccountsWhitelist(accountsWhitelistController), new PermGetAccountsAllowlist(accountsWhitelistController), new PermAddAccountsToWhitelist(accountsWhitelistController), new PermAddAccountsToAllowlist(accountsWhitelistController), new PermRemoveAccountsFromWhitelist(accountsWhitelistController), new PermRemoveAccountsFromAllowlist(accountsWhitelistController), new PermReloadPermissionsFromFile(accountsWhitelistController, nodeWhitelistController)); } PermJsonRpcMethods(
      final Optional<AccountLocalConfigPermissioningController> accountsWhitelistController,
      final Optional<NodeLocalConfigPermissioningController> nodeWhitelistController);   }### Answer:
@Test public void allowlistMethodsPresent() { final Map<String, JsonRpcMethod> rpcMethods = permJsonRpcMethods.create(); assertThat(rpcMethods.get(PERM_GET_ACCOUNTS_ALLOWLIST.getMethodName())) .isInstanceOf(PermGetAccountsAllowlist.class); assertThat(rpcMethods.get(PERM_ADD_ACCOUNTS_TO_ALLOWLIST.getMethodName())) .isInstanceOf(PermAddAccountsToAllowlist.class); assertThat(rpcMethods.get(PERM_REMOVE_ACCOUNTS_FROM_ALLOWLIST.getMethodName())) .isInstanceOf(PermRemoveAccountsFromAllowlist.class); assertThat(rpcMethods.get(PERM_GET_NODES_ALLOWLIST.getMethodName())) .isInstanceOf(PermGetNodesAllowlist.class); assertThat(rpcMethods.get(PERM_ADD_NODES_TO_ALLOWLIST.getMethodName())) .isInstanceOf(PermAddNodesToAllowlist.class); assertThat(rpcMethods.get(PERM_REMOVE_NODES_FROM_ALLOWLIST.getMethodName())) .isInstanceOf(PermRemoveNodesFromAllowlist.class); }
@Deprecated @Test public void whitelistMethodsPresent() { final Map<String, JsonRpcMethod> rpcMethods = permJsonRpcMethods.create(); assertThat(rpcMethods.size()).isEqualTo(13); assertThat(rpcMethods.get(PERM_GET_ACCOUNTS_WHITELIST.getMethodName())) .isInstanceOf(PermGetAccountsWhitelist.class); assertThat(rpcMethods.get(PERM_ADD_ACCOUNTS_TO_WHITELIST.getMethodName())) .isInstanceOf(PermAddAccountsToWhitelist.class); assertThat(rpcMethods.get(PERM_REMOVE_ACCOUNTS_FROM_WHITELIST.getMethodName())) .isInstanceOf(PermRemoveAccountsFromWhitelist.class); assertThat(rpcMethods.get(PERM_GET_NODES_WHITELIST.getMethodName())) .isInstanceOf(PermGetNodesWhitelist.class); assertThat(rpcMethods.get(PERM_ADD_NODES_TO_WHITELIST.getMethodName())) .isInstanceOf(PermAddNodesToAllowlist.class); assertThat(rpcMethods.get(PERM_REMOVE_NODES_FROM_WHITELIST.getMethodName())) .isInstanceOf(PermRemoveNodesFromWhitelist.class); }