1
2
3
4
5 package com.jcabi.http;
6
7 import java.util.Map;
8 import org.hamcrest.MatcherAssert;
9 import org.hamcrest.Matchers;
10 import org.junit.jupiter.api.Test;
11
12
13
14
15
16 final class ImmutableHeaderTest {
17
18
19
20
21 @Test
22 void normalizesHeaderKey() {
23 final Map.Entry<String, String> header =
24 new ImmutableHeader("content-type", "text/plain");
25 MatcherAssert.assertThat(
26 "should be 'Content-Type'",
27 header.getKey(),
28 Matchers.equalTo("Content-Type")
29 );
30 }
31
32 }