@Test
public void testBuildParameters() throws Exception {

    Map<Integer, ParameterCommand> commonds = new HashMap<Integer, ParameterCommand>();
    commonds.put(3, new ParameterCommand(ParameterMethod.setInt, new Object[]{3}, 3));
    commonds.put(1, new ParameterCommand(ParameterMethod.setInt, new Object[]{1}, 1));
    commonds.put(2, new ParameterCommand(ParameterMethod.setInt, new Object[]{2}, 2));
    List<Object> result = routeService.buildParameters(commonds);
    System.out.println(result);
    Assert.assertEquals(3, result.size());
    Assert.assertEquals(1, result.get(0));
    Assert.assertEquals(2, result.get(1));
    Assert.assertEquals(3, result.get(2));
}