test_class.declarator: underTest
test_class.modifier: private
test_class.original_string: private ThingQueryCommandAdapter underTest;
test_class.type: ThingQueryCommandAdapter
test_class.var_name: underTest
test_class.file: protocol-adapter/src/test/java/org/eclipse/ditto/protocoladapter/things/ThingQueryCommandAdapterTest.java
test_class.identifier: ThingQueryCommandAdapterTest
test_class.interfaces: implements ProtocolAdapterTest
test_class.superclass: extends LiveTwinTest
test_case.body: @Test
      public void retrieveAttributesWithFieldsToAdaptable() {
          final JsonFieldSelector selectedFields = JsonFieldSelector.newInstance("foo");
          final TopicPath topicPath = topicPath(TopicPath.Action.RETRIEVE);
          final JsonPointer path = JsonPointer.of("/attributes");
  
          final Adaptable expected = Adaptable.newBuilder(topicPath)
                  .withPayload(Payload.newBuilder(path).withFields(selectedFields).build())
                  .withHeaders(TestConstants.HEADERS_V_2)
                  .build();
  
          final RetrieveAttributes retrieveAttributes =
                  RetrieveAttributes.of(TestConstants.THING_ID, selectedFields,
                          TestConstants.HEADERS_V_2_NO_CONTENT_TYPE);
          final Adaptable actual = underTest.toAdaptable(retrieveAttributes, channel);
  
          assertWithExternalHeadersThat(actual).isEqualTo(expected);
      }
test_case.class_method_signature: ThingQueryCommandAdapterTest.retrieveAttributesWithFieldsToAdaptable()
test_case.full_signature: @Test public void retrieveAttributesWithFieldsToAdaptable()
test_case.identifier: retrieveAttributesWithFieldsToAdaptable
test_case.invocations: newInstance topicPath of build withHeaders withPayload newBuilder build withFields newBuilder of toAdaptable isEqualTo assertWithExternalHeadersThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void retrieveAttributesWithFieldsToAdaptable()
focal_class.declarator: thingQuerySignalMapper =
              SignalMapperFactory.newThingQuerySignalMapper()
focal_class.modifier: private final
focal_class.original_string: private final SignalMapper<ThingQueryCommand<?>> thingQuerySignalMapper =
              SignalMapperFactory.newThingQuerySignalMapper();
focal_class.type: SignalMapper<ThingQueryCommand<?>>
focal_class.var_name: thingQuerySignalMapper
focal_class.declarator: retrieveThingsSignalMapper =
              SignalMapperFactory.newRetrieveThingsSignalMapper()
focal_class.modifier: private final
focal_class.original_string: private final SignalMapper<RetrieveThings> retrieveThingsSignalMapper =
              SignalMapperFactory.newRetrieveThingsSignalMapper();
focal_class.type: SignalMapper<RetrieveThings>
focal_class.var_name: retrieveThingsSignalMapper
focal_class.file: protocol-adapter/src/main/java/org/eclipse/ditto/protocoladapter/things/ThingQueryCommandAdapter.java
focal_class.identifier: ThingQueryCommandAdapter
focal_class.interfaces: implements QueryCommandAdapter<ThingQueryCommand<?>>
focal_class.class_method_signature: ThingQueryCommandAdapter.ThingQueryCommandAdapter(final HeaderTranslator headerTranslator)
focal_class.full_signature: private  ThingQueryCommandAdapter(final HeaderTranslator headerTranslator)
focal_class.identifier: ThingQueryCommandAdapter
focal_class.modifiers: private
focal_class.parameters: (final HeaderTranslator headerTranslator)
focal_class.signature:  ThingQueryCommandAdapter(final HeaderTranslator headerTranslator)
focal_class.class_method_signature: ThingQueryCommandAdapter.of(final HeaderTranslator headerTranslator)
focal_class.full_signature: public static ThingQueryCommandAdapter of(final HeaderTranslator headerTranslator)
focal_class.identifier: of
focal_class.modifiers: public static
focal_class.parameters: (final HeaderTranslator headerTranslator)
focal_class.return: ThingQueryCommandAdapter
focal_class.signature: ThingQueryCommandAdapter of(final HeaderTranslator headerTranslator)
focal_class.class_method_signature: ThingQueryCommandAdapter.getType(final Adaptable adaptable)
focal_class.full_signature: @Override protected String getType(final Adaptable adaptable)
focal_class.identifier: getType
focal_class.modifiers: @Override protected
focal_class.parameters: (final Adaptable adaptable)
focal_class.return: String
focal_class.signature: String getType(final Adaptable adaptable)
focal_class.class_method_signature: ThingQueryCommandAdapter.mapSignalToAdaptable(final ThingQueryCommand<?> command, final TopicPath.Channel channel)
focal_class.full_signature: @Override public Adaptable mapSignalToAdaptable(final ThingQueryCommand<?> command, final TopicPath.Channel channel)
focal_class.identifier: mapSignalToAdaptable
focal_class.modifiers: @Override public
focal_class.parameters: (final ThingQueryCommand<?> command, final TopicPath.Channel channel)
focal_class.return: Adaptable
focal_class.signature: Adaptable mapSignalToAdaptable(final ThingQueryCommand<?> command, final TopicPath.Channel channel)
focal_class.superclass: extends AbstractThingAdapter<ThingQueryCommand<?>>
focal_method.body: public static ThingQueryCommandAdapter of(final HeaderTranslator headerTranslator) {
          return new ThingQueryCommandAdapter(requireNonNull(headerTranslator));
      }
focal_method.class_method_signature: ThingQueryCommandAdapter.of(final HeaderTranslator headerTranslator)
focal_method.full_signature: public static ThingQueryCommandAdapter of(final HeaderTranslator headerTranslator)
focal_method.identifier: of
focal_method.invocations: requireNonNull
focal_method.modifiers: public static
focal_method.parameters: (final HeaderTranslator headerTranslator)
focal_method.return: ThingQueryCommandAdapter
focal_method.signature: ThingQueryCommandAdapter of(final HeaderTranslator headerTranslator)