assertEquals(obj.getAtt4(), 22);
assertEquals(SampleEnum.CONSTANT_1,
obj.echoEnum(SampleEnum.CONSTANT_1));
ComplexParam returnValue = obj.echoRegister(new ComplexParam(
"prop1", 33));
assertEquals(returnValue.getProp1(), "prop1");
assertEquals(returnValue.getProp2(), 33);
List<SampleEnum> result = obj.echoListEnum(Arrays.asList(
SampleEnum.CONSTANT_1, SampleEnum.CONSTANT_2));
assertEquals(SampleEnum.CONSTANT_1, result.get(0));
assertEquals(SampleEnum.CONSTANT_2, result.get(1));
List<ComplexParam> params = new ArrayList<>();
params.add(new ComplexParam("prop1_1", 33));
params.add(new ComplexParam("prop1_2", 44));
List<ComplexParam> returnParams = obj.echoListRegister(params);
ComplexParam value1 = returnParams.get(0);
ComplexParam value2 = returnParams.get(1);
assertEquals(value1.getProp1(), "prop1_1");
assertEquals(value1.getProp2(), 33);
assertEquals(value2.getProp1(), "prop1_2");
assertEquals(value2.getProp2(), 44);
}
}