@Test
public void open_ifBodyIsSetWithoutContentTypeHeader_fails() {

  testDataSpec =
      new DataSpec(
          /* uri= */ Uri.parse(TEST_URL),
          /* postBody= */ new byte[1024],
          /* absoluteStreamPosition= */ 200,
          /* position= */ 200,
          /* length= */ 1024,
          /* key= */ "key",
          /* flags= */ 0);
  try {
    dataSourceUnderTest.open(testDataSpec);
    fail();
  } catch (IOException expected) {
    // Expected
  }
}