fields.add(FIELD_ID_BB_UNIQUE);
fields.add(FIELD_TICKER);
String securityDes = AAPL_TICKER;
Set<String> securities = Collections.singleton(securityDes);
getUnitProvider().addAcceptableRequest(securities, fields);
ReferenceDataProviderGetResult result = getProvider().getReferenceData(
ReferenceDataProviderGetRequest.createGet(securities, fields, true));
assertNotNull(result);
assertNotNull(result.getReferenceData(securityDes));
getUnitProvider().clearAcceptableRequests();
result = getProvider().getReferenceData(
ReferenceDataProviderGetRequest.createGet(securities, fields, true));
assertNotNull(result);
assertNotNull(result.getReferenceData(securityDes));
fields.add(FIELD_ID_CUSIP);
fields.add(FIELD_ID_ISIN);
getUnitProvider().clearAcceptableRequests();
Set<String> expectedFields = new TreeSet<String>();
expectedFields.add(FIELD_ID_CUSIP);
expectedFields.add(FIELD_ID_ISIN);
getUnitProvider().addAcceptableRequest(securities, expectedFields);
result = getProvider().getReferenceData(
ReferenceDataProviderGetRequest.createGet(securities, fields, true));
assertNotNull(result);
assertNotNull(result.getReferenceData(securityDes));
}