@Test
public void fromJsonWithChannelIds() {
final String uaid = UUIDUtil.newUAID();
final String json = "{\"messageType\": \"hello\", \"uaid\": \"" + uaid + "\", \"channelIDs\": [\"123\", \"456\"] }";
final HelloMessage handshake = JsonUtil.fromJson(json, HelloMessageImpl.class);
assertThat(handshake.getMessageType(), is(equalTo(MessageType.Type.HELLO)));
assertThat(handshake.getUAID(), is(equalTo(uaid)));
assertThat(handshake.getChannelIds().isEmpty(), is(false));
assertThat(handshake.getChannelIds(), hasItems("123", "456"));
}