@Theory
public void allPartsLength(String deviceToken, PayloadBuilder payload) {
String payloadString = payload.build();
SimpleApnsNotification msg = new SimpleApnsNotification(deviceToken, payloadString);
byte[] bytes = msg.marshall();
int expectedLength = 1
+ 2 + decodeHex(deviceToken).length
+ 2 + toUTF8Bytes(payloadString).length;
assertEquals(expectedLength, bytes.length);