@Test
public void testOpeningTwiceThrows() throws HttpDataSourceException {

  mockResponseStartSuccess();
  dataSourceUnderTest.open(testDataSpec);
  try {
    dataSourceUnderTest.open(testDataSpec);
    fail("Expected IllegalStateException.");
  } catch (IllegalStateException e) {
    // Expected.
  }
}