@Test
public void requestPayloadHasBothParsedViewAndRawDataView() {

  myView = new ConnectionDetailsView(myStageView);
  HttpData data = new HttpData.Builder(DEFAULT_DATA).setRequestFields("Content-Type = application/x-www-form-urlencoded")
    .setResponseFields(RESPONSE_HEADERS).setRequestPayloadId(TEST_REQUEST_PAYLOAD_ID)
    .build();
  myTransportService.addFile(TEST_REQUEST_PAYLOAD_ID, ByteString.copyFromUtf8("a=1&b=2"));
  myView.setHttpData(data);
  JComponent payloadBody = findTab(myView, RequestTabContent.class).findPayloadBody();
  assertThat(payloadBody).isNotNull();
  assertThat(new TreeWalker(payloadBody).descendantStream().anyMatch(c -> c.getName().equals("View Parsed"))).isTrue();
  assertThat(new TreeWalker(payloadBody).descendantStream().anyMatch(c -> c.getName().equals("View Source"))).isTrue();
}