@Test
public void withRequestHeaders_setsCorrectHeaders() {

  Map<String, String> httpRequestProperties = createRequestProperties(5);
  DataSpec dataSpec = createDataSpecWithHeaders(httpRequestProperties);
  Map<String, String> newRequestHeaders = createRequestProperties(5, 10);
  DataSpec dataSpecCopy = dataSpec.withRequestHeaders(newRequestHeaders);
  assertThat(dataSpecCopy.httpRequestHeaders).isEqualTo(newRequestHeaders);
}