}
@Test
public void testRmi_updateEvent() { // 测试复合对象的序列化
CommunicationRegistry.regist(AppEventType.update, service);
AppUpdateEvent event = new AppUpdateEvent();
event.setName("rmiEvent");
event.setBigDecimalValue(BigDecimal.TEN);
event.setBigIntegerValue(BigInteger.TEN);
UpdateData data = new UpdateData();
data.setName("data");
data.setBigDecimalValue(BigDecimal.TEN);
data.setBigIntegerValue(BigInteger.TEN);
event.setData(data);
List<Boolean> result = (List<Boolean>) client.call(new String[] { "127.0.0.1:2088", "127.0.0.1:2089" }, event);// 同步调用
want.number(result.size()).isEqualTo(2);
want.bool(result.get(0)).is(true);
want.bool(result.get(1)).is(true);