@Test
public void testCreateInstrumentInfoList() throws IOException {

  InputStream fileMarketSearchTermResponse =
      ClassLoader.getSystemResourceAsStream(FILE_MARKET_SEARCH_TERM_RESPONSE);
  List<InstrumentInfo> result = IgIndexResponseParser.createInstrumentInfoList(
      IOUtils.toString(fileMarketSearchTermResponse));
  fileMarketSearchTermResponse.close();
  assertNotNull(result);
  assertTrue(result.size() == 50);
  List<String> instrumentIds = Lists.newArrayList();
  for (InstrumentInfo instrumentInfo : result) {
    assertInstrumentInfo(instrumentInfo);
    // Assert instrumentId uniqueness.
    assertTrue(!instrumentIds.contains(instrumentInfo.getInstrumentId()));
    instrumentIds.add(instrumentInfo.getInstrumentId());
  }
}