MessageCommandResponseAdapter extends AbstractAdapter<MessageCommandResponse<?, ?>> implements ThingMessageAdapter<MessageCommandResponse<?, ?>> { public static MessageCommandResponseAdapter of(final HeaderTranslator headerTranslator) { return new MessageCommandResponseAdapter(requireNonNull(headerTranslator)); } private  MessageCommandResponseAdapter(final HeaderTranslator headerTranslator); static MessageCommandResponseAdapter of(final HeaderTranslator headerTranslator); @Override Adaptable toAdaptable(final MessageCommandResponse<?, ?> t); @Override boolean isForResponses(); @Override boolean requiresSubject(); @Override Adaptable mapSignalToAdaptable(final MessageCommandResponse<?, ?> command, final TopicPath.Channel channel);  }
@Test public void sendMessageResponsePlainTextFromAdaptable() { final MessageDirection messageDirection = MessageDirection.TO; final String subject = subject(); final String payload = "Huhu!"; final String contentType = "text/plain"; sendMessageResponseFromAdaptable(messageDirection, subject, JsonValue.of(payload), payload, contentType); }