### Question:
BpmnRequestBuilder { public ServiceInstancesRequest buildVolumeGroupDeleteRequest(String vnfId, String volumeGroupId) throws AAIEntityNotFound { GenericVnf vnf = aaiDataRet.getGenericVnf(vnfId); if (vnf == null) { throw new AAIEntityNotFound(GENERIC_VNF_NOT_FOUND_IN_INVENTORY_VNF_ID + vnfId); } VolumeGroup volumeGroup = aaiDataRet.getVolumeGroup(vnfId, volumeGroupId); if (volumeGroup == null) { throw new AAIEntityNotFound( VF_MODULE_NOT_FOUND_IN_INVENTORY_VNF_ID + vnfId + " volumeGroupId: " + volumeGroupId); } return createServiceInstancesRequest(vnf, volumeGroup); }  ServiceInstancesRequest buildVFModuleDeleteRequest(String vnfId, String vfModuleId, ModelType modelType); CloudConfiguration getCloudConfigurationVfModuleReplace(String vnfId, String vfModuleId); ServiceInstancesRequest buildVolumeGroupDeleteRequest(String vnfId, String volumeGroupId); ServiceInstancesRequest buildServiceDeleteRequest(String serviceInstanceId); ServiceInstancesRequest buildVnfDeleteRequest(String vnfId); ServiceInstancesRequest buildNetworkDeleteRequest(String networkId); CloudConfiguration mapCloudConfiguration(GenericVnf vnf, String vfModuleId); CloudConfiguration mapCloudConfigurationVolume(GenericVnf vnf, VolumeGroup volumeGroup); CloudConfiguration mapCloudConfigurationNetwork(L3Network network); CloudConfiguration mapCloudConfigurationVnf(String vnfId); Optional<ServiceInstancesRequest> findServiceInstanceRequest(Map<String, String[]> filters); Map<String, String[]> createQueryRequest(String name, String instanceId); RequestInfo createRequestInfo(); RequestParameters createRequestParameters();  }### Answer:
@Test public void test_buildVolumeGroupDeleteRequest() throws Exception { GenericVnf vnf = provider.getMapper().readValue(new File(RESOURCE_PATH + "Vnf.json"), GenericVnf.class); doReturn(Optional.of(vnf)).when(aaiResourcesClient).get(GenericVnf.class, AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().genericVnf("vnfId"))); VolumeGroup volumeGroup = provider.getMapper().readValue(new File(RESOURCE_PATH + "VolumeGroup.json"), VolumeGroup.class); AAIResultWrapper wrapper = new AAIResultWrapper(volumeGroup); doReturn(wrapper).when(aaiResourcesClient) .get(AAIUriFactory.createResourceUri(AAIFluentTypeBuilder.network().genericVnf("vnfId")) .relatedTo(Types.VOLUME_GROUP.getFragment("volumeGroupId"))); ServiceInstancesRequest expectedRequest = mapper .readValue(new File(RESOURCE_PATH + "ExpectedVolumeGroupRequest.json"), ServiceInstancesRequest.class); ServiceInstancesRequest actualRequest = reqBuilder.buildVolumeGroupDeleteRequest("vnfId", "volumeGroupId"); assertThat(actualRequest, sameBeanAs(expectedRequest)); }