### Question:
NetAccessUtils { public static boolean blockPortProtocol(RemoteCmdClient client, String port, String protcol, int delaySecond) { return doBlockPort(client, port, protcol, delaySecond, 0); }  static boolean blockIP(RemoteCmdClient client, String ip, int delaySecond); static boolean blockIPInput(RemoteCmdClient client, String ip, int delaySecond); static boolean blockIPInput(RemoteCmdClient client, List<String> ipList, int delaySecond); static boolean blockIPOutput(RemoteCmdClient client, String ip, int delaySecond); static boolean blockIPOutput(RemoteCmdClient client, List<String> ipList, int delaySecond); static boolean blockIP(RemoteCmdClient client, String ip, int delaySecond, int triggerSecond); static boolean blockIP(RemoteCmdClient client, List<String> ipList, int delaySecond, int triggerSecond); static boolean blockIPInput(RemoteCmdClient client, String ip, int delaySecond, int triggerSecond); static boolean blockIPInput(RemoteCmdClient client, List<String> ipList, int delaySecond, int triggerSecond); static boolean blockIPOutput(RemoteCmdClient client, String ip, int delaySecond, int triggerSecond); static boolean blockIPOutput(RemoteCmdClient client, List<String> ipList, int delaySecond, int triggerSecond); static boolean blockPortProtocol(RemoteCmdClient client, String port, String protcol, int delaySecond); static boolean blockPortProtocol(RemoteCmdClient client, String port, String protcol, int delaySecond, int triggerSecond); static boolean unblockIP(RemoteCmdClient client, String ip); static boolean unblockIPInput(RemoteCmdClient client, String ip); static boolean unblockIPOutput(RemoteCmdClient client, String ip); static boolean unblockPortProtcol(RemoteCmdClient client, String port, String protcol); static void clearAll(RemoteCmdClient client);  }### Answer:
@Test public void testPortBlock() { Map<String, String> params = ((AbstractElement) this.getTestProject()).getVariables(); RemoteCmdClientConfig connectUnit = new RemoteCmdClientConfig(); connectUnit.setPassword(params.get("password")); connectUnit.setUserName(params.get("userName")); connectUnit.setIp(params.get("ip")); RemoteCmdClient commandExecutor = new RemoteCmdClient(connectUnit); NetAccessUtils.blockPortProtocol(commandExecutor, "8080", "tcp", 60); }