Set<String> securities = Collections.singleton(securityDes);
getUnitProvider().addAcceptableRequest(securities, fields);
ReferenceDataProviderGetResult result = getProvider().getReferenceData(
ReferenceDataProviderGetRequest.createGet(securities, fields, true));
assertNotNull(result);
ReferenceData perSecurity = result.getReferenceData(securityDes);
assertNotNull(perSecurity);
FudgeMsg fieldData = perSecurity.getFieldValues();
assertNotNull(fieldData);
assertEquals(2, fieldData.getNumFields());
fields.clear();
fields.add(FIELD_TICKER);
getUnitProvider().clearAcceptableRequests();
result = getProvider().getReferenceData(
ReferenceDataProviderGetRequest.createGet(securities, fields, true));
assertNotNull(result);
perSecurity = result.getReferenceData(securityDes);
assertNotNull(perSecurity);
fieldData = perSecurity.getFieldValues();
assertNotNull(fieldData);
assertEquals(1, fieldData.getNumFields());
}