@Test
    public void testRegisterProcessor() {
        ProcessorManager processorManager = new ProcessorManager();
        CommandCode cmd1 = RpcCommandCode.RPC_REQUEST;
        CommandCode cmd2 = RpcCommandCode.RPC_REQUEST;
        RpcRequestProcessor rpcRequestProcessor1 = new RpcRequestProcessor();
        RpcRequestProcessor rpcRequestProcessor2 = new RpcRequestProcessor();
        processorManager.registerProcessor(cmd1, rpcRequestProcessor1);
        processorManager.registerProcessor(cmd2, rpcRequestProcessor2);
        Assert.assertEquals(processorManager.getProcessor(cmd1), rpcRequestProcessor2);
        Assert.assertEquals(processorManager.getProcessor(cmd2), rpcRequestProcessor2);
    }
test it should be override if register twice for the same command code
src/test/java/com/alipay/remoting/ProcessorManagerTest.java