### Question:
RedisCommandControl { public IRedisReply action(RedisCommand command){ return action(command,null); } RedisCommandControl();  RedisCommandControl(Map<String, AbstractPoolClient> redisServerBeanMap,RedisServerMasterCluster redisServerMasterCluster); IRedisReply action(RedisCommand command); IRedisReply action(RedisCommand command,ChannelHandlerContext ctx);  }### Answer:
@Test public void actionForConn() { RedisCommandControl redisCommandControl = new RedisCommandControl(); RedisCommand command =createCmd("auth"); assertNotNull(command); IRedisReply reply= redisCommandControl.action(command); assertNotNull(reply); assertEquals(Type.ERROR,reply.getType()); command =createCmd("ECHO"); assertNotNull(command); reply= redisCommandControl.action(command); assertNotNull(reply); assertEquals(Type.ERROR,reply.getType()); command =createCmd("SELECT"); assertNotNull(command); reply=redisCommandControl.action(command); assertNotNull(reply); assertEquals(Type.ERROR,reply.getType()); command =createCmd("PING"); assertNotNull(command); reply= redisCommandControl.action(command); assertNotNull(reply); assertEquals(Type.STATUS,reply.getType()); command =createCmd("QUIT"); assertNotNull(command); reply= redisCommandControl.action(command); assertNotNull(reply); assertEquals(Type.BULK,reply.getType()); command =createCmd("SELECT 1"); assertNotNull(command); reply= redisCommandControl.action(command); assertNotNull(reply); assertEquals(Type.STATUS,reply.getType()); command =createCmd("auth 1"); assertNotNull(command); reply=redisCommandControl.action(command); assertNotNull(reply); assertEquals(Type.STATUS,reply.getType()); command =createCmd("ECHO 1"); assertNotNull(command); reply= redisCommandControl.action(command); assertNotNull(reply); assertEquals(Type.STATUS,reply.getType()); }