### Question:
MsoRequest { protected String getProductFamilyNameFromAAI(ServiceInstancesRequest servInsReq) { String productFamilyName = null; if (servInsReq.getRequestDetails() != null && servInsReq.getRequestDetails().getRequestInfo() != null && servInsReq.getRequestDetails().getRequestInfo().getProductFamilyId() != null) { org.onap.aai.domain.yang.Service service = aaiDataRet.getService(servInsReq.getRequestDetails().getRequestInfo().getProductFamilyId()); if (service != null) { productFamilyName = service.getServiceDescription(); } } return productFamilyName; }  Response buildServiceErrorResponse(int httpResponseCode, MsoException exceptionType, String errorText,
            String messageId, List<String> variables, String version); void parse(ServiceInstancesRequest sir, Map<String, String> instanceIdMap, Actions action, String version,
            String originalRequestJSON, int reqVersion, Boolean aLaCarteFlag); Map<String, List<String>> getOrchestrationFilters(MultivaluedMap<String, String> queryParams); InfraActiveRequests createRequestObject(ServiceInstancesRequest servInsReq, Actions action, String requestId,
            Status status, String originalRequestJSON, String requestScope); InfraActiveRequests createRequestObject(TasksRequest taskRequest, Action action, String requestId,
            Status status, String originalRequestJSON); void createErrorRequestRecord(Status status, String requestId, String errorMessage, Actions action,
            String requestScope, String requestJSON, String serviceInstanceId); Response buildResponse(int httpResponseCode, String errorCode, InfraActiveRequests inProgress); Response buildResponseWithError(int httpResponseCode, String errorCode, InfraActiveRequests inProgress,
            String errorString); Response buildResponseFailedValidation(int httpResponseCode, String exceptionMessage); String getServiceType(VnfInputs vnfInputs); long translateStatus(RequestStatusType status); static String domToStr(Document doc); void addBPMNSpecificInputs(VnfRequest vnfReq, VnfInputs vnfInputs, String personaModelId,
            String personaModelVersion, Boolean isBaseVfModule, String vnfPersonaModelId,
            String vnfPersonaModelVersion); String getRequestJSON(ServiceInstancesRequest sir); boolean getAlacarteFlag(ServiceInstancesRequest sir); String getNetworkType(ServiceInstancesRequest sir, String requestScope); String getServiceInstanceType(ServiceInstancesRequest sir, String requestScope); String getSDCServiceModelVersion(ServiceInstancesRequest sir); String getVfModuleType(ServiceInstancesRequest sir, String requestScope); String getVnfType(ServiceInstancesRequest sir, String requestScope);  }### Answer:
@Test public void getProductFamilyNameFromAAITest() throws Exception { this.sir = mapper.readValue(inputStream("/SuccessfulValidation/ServiceAssign.json"), ServiceInstancesRequest.class); String serviceId = "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb"; String serviceDescription = "testServiceDescription"; Service service = new Service(); service.setServiceId(serviceId); service.setServiceDescription(serviceDescription); doReturn(service).when(aaiDataRet).getService(serviceId); String productFamilyName = msoRequestMock.getProductFamilyNameFromAAI(this.sir); assertEquals(serviceDescription, productFamilyName); }