@Test
public void headerSectionIsSorted() {

  HttpData data = new HttpData.Builder(DEFAULT_DATA).setRequestFields(TEST_HEADERS).build();
  myView.setHttpData(data);
  TabContent tabContent = findTab(myView, RequestTabContent.class);
  String text = firstDescendantWithType(tabContent.getComponent(), JTextPane.class).getText();
  assertUiContainsLabelAndValue(text, "123", "numeric-value");
  assertUiContainsLabelAndValue(text, "apple", "apple-value");
  assertUiContainsLabelAndValue(text, "border", "border-value");
  assertUiContainsLabelAndValue(text, "car", "car-value");
  assertThat(text.indexOf("123")).isGreaterThan(-1);
  assertThat(text.indexOf("123")).isLessThan(text.indexOf("apple"));
  assertThat(text.indexOf("apple")).isLessThan(text.indexOf("border"));
  assertThat(text.indexOf("border")).isLessThan(text.indexOf("car"));
}