test_class.declarator: THING_ID = ThingId.of("test.ns", "theThingId")
test_class.modifier: private static final
test_class.original_string: private static final ThingId THING_ID = ThingId.of("test.ns", "theThingId");
test_class.type: ThingId
test_class.var_name: THING_ID
test_class.declarator: SUBJECT = "theSubject"
test_class.modifier: private static final
test_class.original_string: private static final String SUBJECT = "theSubject";
test_class.type: String
test_class.var_name: SUBJECT
test_class.declarator: CONTENT_TYPE = "application/xml"
test_class.modifier: private static final
test_class.original_string: private static final String CONTENT_TYPE = "application/xml";
test_class.type: String
test_class.var_name: CONTENT_TYPE
test_class.declarator: KNOWN_RAW_PAYLOAD_STR = "<some>42</some>"
test_class.modifier: private static final
test_class.original_string: private static final String KNOWN_RAW_PAYLOAD_STR = "<some>42</some>";
test_class.type: String
test_class.var_name: KNOWN_RAW_PAYLOAD_STR
test_class.declarator: KNOWN_RAW_PAYLOAD_BYTES = KNOWN_RAW_PAYLOAD_STR.getBytes(StandardCharsets.UTF_8)
test_class.modifier: private static final
test_class.original_string: private static final byte[] KNOWN_RAW_PAYLOAD_BYTES = KNOWN_RAW_PAYLOAD_STR.getBytes(StandardCharsets.UTF_8);
test_class.type: byte[]
test_class.var_name: KNOWN_RAW_PAYLOAD_BYTES
test_class.declarator: MESSAGE = MessagesModelFactory.newMessageBuilder(
              MessageHeaders.newBuilder(MessageDirection.TO, THING_ID, SUBJECT)
                      .contentType(CONTENT_TYPE)
                      .build())
              .rawPayload(ByteBuffer.wrap(KNOWN_RAW_PAYLOAD_BYTES))
              .build()
test_class.modifier: static final
test_class.original_string: static final Message<?> MESSAGE = MessagesModelFactory.newMessageBuilder(
              MessageHeaders.newBuilder(MessageDirection.TO, THING_ID, SUBJECT)
                      .contentType(CONTENT_TYPE)
                      .build())
              .rawPayload(ByteBuffer.wrap(KNOWN_RAW_PAYLOAD_BYTES))
              .build();
test_class.type: Message<?>
test_class.var_name: MESSAGE
test_class.file: signals/commands/messages/src/test/java/org/eclipse/ditto/signals/commands/messages/acks/MessageCommandAckRequestSetterTest.java
test_class.identifier: MessageCommandAckRequestSetterTest
test_case.body: @Test
      public void removeLiveResponseAckLabelWhenResponseRequiredFalse() {
          final DittoHeaders dittoHeaders = DittoHeaders.newBuilder()
                  .channel("live")
                  .responseRequired(false)
                  .acknowledgementRequest(AcknowledgementRequest.of(DittoAcknowledgementLabel.LIVE_RESPONSE))
                  .randomCorrelationId()
                  .build();
          final MessageCommand<?, ?> command = SendThingMessage.of(THING_ID, MESSAGE, dittoHeaders);
          final DittoHeaders expectedHeaders = DittoHeaders.newBuilder(dittoHeaders)
                  .acknowledgementRequests(Collections.emptyList())
                  .responseRequired(false)
                  .build();
          final MessageCommand<?, ?> expected = command.setDittoHeaders(expectedHeaders);
          final MessageCommandAckRequestSetter underTest = MessageCommandAckRequestSetter.getInstance();
  
          final MessageCommand<?, ?> appliedCommand = underTest.apply(command);
          assertThat(appliedCommand.getDittoHeaders()).isEqualTo(expectedHeaders);
          assertThat(appliedCommand).isEqualTo(expected);
      }
test_case.class_method_signature: MessageCommandAckRequestSetterTest.removeLiveResponseAckLabelWhenResponseRequiredFalse()
test_case.full_signature: @Test public void removeLiveResponseAckLabelWhenResponseRequiredFalse()
test_case.identifier: removeLiveResponseAckLabelWhenResponseRequiredFalse
test_case.invocations: build randomCorrelationId acknowledgementRequest responseRequired channel newBuilder of of build responseRequired acknowledgementRequests newBuilder emptyList setDittoHeaders getInstance apply isEqualTo assertThat getDittoHeaders isEqualTo assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void removeLiveResponseAckLabelWhenResponseRequiredFalse()
focal_class.declarator: INSTANCE = new MessageCommandAckRequestSetter()
focal_class.modifier: private static final
focal_class.original_string: private static final MessageCommandAckRequestSetter INSTANCE = new MessageCommandAckRequestSetter();
focal_class.type: MessageCommandAckRequestSetter
focal_class.var_name: INSTANCE
focal_class.file: signals/commands/messages/src/main/java/org/eclipse/ditto/signals/commands/messages/acks/MessageCommandAckRequestSetter.java
focal_class.identifier: MessageCommandAckRequestSetter
focal_class.class_method_signature: MessageCommandAckRequestSetter.MessageCommandAckRequestSetter()
focal_class.full_signature: private  MessageCommandAckRequestSetter()
focal_class.identifier: MessageCommandAckRequestSetter
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  MessageCommandAckRequestSetter()
focal_class.class_method_signature: MessageCommandAckRequestSetter.getInstance()
focal_class.full_signature: public static MessageCommandAckRequestSetter getInstance()
focal_class.identifier: getInstance
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: MessageCommandAckRequestSetter
focal_class.signature: MessageCommandAckRequestSetter getInstance()
focal_class.class_method_signature: MessageCommandAckRequestSetter.isApplicable(final MessageCommand<?, ?> command)
focal_class.full_signature: @Override public boolean isApplicable(final MessageCommand<?, ?> command)
focal_class.identifier: isApplicable
focal_class.modifiers: @Override public
focal_class.parameters: (final MessageCommand<?, ?> command)
focal_class.return: boolean
focal_class.signature: boolean isApplicable(final MessageCommand<?, ?> command)
focal_class.class_method_signature: MessageCommandAckRequestSetter.getMatchedClass()
focal_class.full_signature: @Override @SuppressWarnings({"unchecked", "rawtypes"}) public Class<MessageCommand<?, ?>> getMatchedClass()
focal_class.identifier: getMatchedClass
focal_class.modifiers: @Override @SuppressWarnings({"unchecked", "rawtypes"}) public
focal_class.parameters: ()
focal_class.return: Class<MessageCommand<?, ?>>
focal_class.signature: Class<MessageCommand<?, ?>> getMatchedClass()
focal_class.class_method_signature: MessageCommandAckRequestSetter.isBindResponseRequiredToAddingRemovingImplicitLabel()
focal_class.full_signature: @Override protected boolean isBindResponseRequiredToAddingRemovingImplicitLabel()
focal_class.identifier: isBindResponseRequiredToAddingRemovingImplicitLabel
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isBindResponseRequiredToAddingRemovingImplicitLabel()
focal_class.superclass: extends AbstractCommandAckRequestSetter<MessageCommand<?, ?>>
focal_method.body: public static MessageCommandAckRequestSetter getInstance() {
          return INSTANCE;
      }
focal_method.class_method_signature: MessageCommandAckRequestSetter.getInstance()
focal_method.full_signature: public static MessageCommandAckRequestSetter getInstance()
focal_method.identifier: getInstance
focal_method.modifiers: public static
focal_method.parameters: ()
focal_method.return: MessageCommandAckRequestSetter
focal_method.signature: MessageCommandAckRequestSetter getInstance()