ShardedMessageEnvelope implements Jsonifiable<JsonObject>, WithDittoHeaders<ShardedMessageEnvelope>, WithId { public static ShardedMessageEnvelope of(final EntityId id, final String type, final JsonObject message, final DittoHeaders dittoHeaders) { return new ShardedMessageEnvelope(id, type, message, dittoHeaders); } private  ShardedMessageEnvelope(final EntityId id,
            final String type,
            final JsonObject message,
            final DittoHeaders dittoHeaders); static ShardedMessageEnvelope of(final EntityId id,
            final String type,
            final JsonObject message,
            final DittoHeaders dittoHeaders); static ShardedMessageEnvelope fromJson(final JsonObject jsonObject); EntityId getEntityId(); String getType(); JsonObject getMessage(); @Override DittoHeaders getDittoHeaders(); @Override ShardedMessageEnvelope setDittoHeaders(final DittoHeaders dittoHeaders); @Override JsonObject toJson(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); static final JsonFieldDefinition<String> JSON_ID; static final JsonFieldDefinition<String> JSON_TYPE; static final JsonFieldDefinition<JsonObject> JSON_MESSAGE; static final JsonFieldDefinition<JsonObject> JSON_DITTO_HEADERS; }
@Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullId() { ShardedMessageEnvelope.of(null, TYPE, MESSAGE, DITTO_HEADERS); }
@Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullType() { ShardedMessageEnvelope.of(MESSAGE_ID, null, MESSAGE, DITTO_HEADERS); }
@Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullPayload() { ShardedMessageEnvelope.of(MESSAGE_ID, TYPE, null, DITTO_HEADERS); }
@Test(expected = NullPointerException.class) public void tryToCreateInstanceWithNullDittoHeaders() { ShardedMessageEnvelope.of(MESSAGE_ID, TYPE, MESSAGE, null); }