### Question:
BusinessDataReferencesResource extends CommonResource { @Get("json") public List<BusinessDataReference> getProcessBusinessDataReferences() { final Long processInstanceId = getCaseId(); final Integer p = getSearchPageNumber(); final Integer c = getSearchPageSize(); return bdmAPI.getProcessBusinessDataReferences(processInstanceId, p * c, c); } BusinessDataReferencesResource(final BusinessDataAPI bdmAPI); @Get("json") List<BusinessDataReference> getProcessBusinessDataReferences();  }### Answer:
@Test public void should_return_the_references_of_the_business_data_of_the_process_instance() throws Exception { final List<BusinessDataReference> references = new ArrayList<BusinessDataReference>(); references.add(buildSimpleEmployeeReference("john", 487467354L)); references.add(buildMultipleEmployeeReference("Ateam", 687646784L, 2313213874354L)); when(bdmAPI.getProcessBusinessDataReferences(486L, 10, 10)).thenReturn(references); final Response response = request("/bdm/businessDataReference?f=caseId%3D486&p=1&c=10").get(); assertThat(response).hasStatus(Status.SUCCESS_OK); assertThat(response).hasJsonEntityEqualTo(readFile("refs.json")); }