@Test (expected = IllegalArgumentException.class) public void testSerializeEmptyRequestWithPayloadFails() { Request request = new Request(null, Type.CON); request.setToken(Token.EMPTY); request.setMID(1); request.setPayload("test"); request.setURI("coap: serializer.serializeRequest(request); }
public final RawData serializeRequest(final Request request) { return serializeRequest(request, null); }
DataSerializer { public final RawData serializeRequest(final Request request) { return serializeRequest(request, null); } }
DataSerializer { public final RawData serializeRequest(final Request request) { return serializeRequest(request, null); }  }
DataSerializer { public final RawData serializeRequest(final Request request) { return serializeRequest(request, null); }  final byte[] getByteArray(final Message message); final RawData serializeRequest(final Request request); final RawData serializeRequest(final Request request, final MessageCallback outboundCallback); final RawData serializeResponse(final Response response); final RawData serializeResponse(final Response response, final MessageCallback outboundCallback); final RawData serializeEmptyMessage(final EmptyMessage emptyMessage); final RawData serializeEmptyMessage(final EmptyMessage emptyMessage, final MessageCallback outboundCallback); static void serializeOptionsAndPayload(DatagramWriter writer, final OptionSet optionSet,
			final byte[] payload); }
DataSerializer { public final RawData serializeRequest(final Request request) { return serializeRequest(request, null); }  final byte[] getByteArray(final Message message); final RawData serializeRequest(final Request request); final RawData serializeRequest(final Request request, final MessageCallback outboundCallback); final RawData serializeResponse(final Response response); final RawData serializeResponse(final Response response, final MessageCallback outboundCallback); final RawData serializeEmptyMessage(final EmptyMessage emptyMessage); final RawData serializeEmptyMessage(final EmptyMessage emptyMessage, final MessageCallback outboundCallback); static void serializeOptionsAndPayload(DatagramWriter writer, final OptionSet optionSet,
			final byte[] payload);  }