test_class.declarator: headersSerializer = new HeadersSerializer()
test_class.modifier: private static
test_class.original_string: private static Serializer<Headers> headersSerializer = new HeadersSerializer();
test_class.type: Serializer<Headers>
test_class.var_name: headersSerializer
test_class.file: http/src/test/java/ro/polak/http/protocol/serializer/impl/HeadersSerializerTest.java
test_class.identifier: HeadersSerializerTest
test_case.body: @Test
      public void shouldPreserveOriginalCase() {
          Headers headers = new Headers();
          headers.setHeader("header", "Value");
          headers.setHeader("someOtherHeader", "123");
  
          assertThat(headersSerializer.serialize(headers), anyOf(
                  is("someOtherHeader: 123\r\nheader: Value\r\n\r\n"),
                  is("header: Value\r\nsomeOtherHeader: 123\r\n\r\n")
          ));
      }
test_case.class_method_signature: HeadersSerializerTest.shouldPreserveOriginalCase()
test_case.full_signature: @Test public void shouldPreserveOriginalCase()
test_case.identifier: shouldPreserveOriginalCase
test_case.invocations: setHeader setHeader assertThat serialize anyOf is is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldPreserveOriginalCase()
focal_class.declarator: NEW_LINE = "\r\n"
focal_class.modifier: private static final
focal_class.original_string: private static final String NEW_LINE = "\r\n";
focal_class.type: String
focal_class.var_name: NEW_LINE
focal_class.declarator: KEY_VALUE_SEPARATOR = ": "
focal_class.modifier: private static final
focal_class.original_string: private static final String KEY_VALUE_SEPARATOR = ": ";
focal_class.type: String
focal_class.var_name: KEY_VALUE_SEPARATOR
focal_class.file: http/src/main/java/ro/polak/http/protocol/serializer/impl/HeadersSerializer.java
focal_class.identifier: HeadersSerializer
focal_class.interfaces: implements Serializer<Headers>
focal_class.class_method_signature: HeadersSerializer.serialize(final Headers headers)
focal_class.full_signature: @Override public String serialize(final Headers headers)
focal_class.identifier: serialize
focal_class.modifiers: @Override public
focal_class.parameters: (final Headers headers)
focal_class.return: String
focal_class.signature: String serialize(final Headers headers)
focal_method.body: @Override
      public String serialize(final Headers headers) {
          Set<String> names = headers.keySet();
          StringBuilder sb = new StringBuilder();
          for (String name : names) {
              sb.append(name)
                      .append(KEY_VALUE_SEPARATOR)
                      .append(headers.getHeader(name))
                      .append(NEW_LINE);
          }
          sb.append(NEW_LINE);
  
          return sb.toString();
      }
focal_method.class_method_signature: HeadersSerializer.serialize(final Headers headers)
focal_method.full_signature: @Override public String serialize(final Headers headers)
focal_method.identifier: serialize
focal_method.invocations: keySet append append append append getHeader append toString
focal_method.modifiers: @Override public
focal_method.parameters: (final Headers headers)
focal_method.return: String
focal_method.signature: String serialize(final Headers headers)