}
private Channel newChannel(final String uaid, final String channelId, final long version) {
final byte[] keySalt = "some string as a salt".getBytes();
final String endpointToken = CryptoUtil.endpointToken(uaid, channelId, CryptoUtil.secretKey("testKey", keySalt));
return new DefaultChannel(uaid, channelId, version, endpointToken);
}