### Question:
SDNCServiceInstanceResources { public GenericResourceApiServiceOperationInformation unassignServiceInstance(ServiceInstance serviceInstance, Customer customer, RequestContext requestContext) { return sdncRM.reqMapper(SDNCSvcOperation.SERVICE_TOPOLOGY_OPERATION, SDNCSvcAction.DELETE, GenericResourceApiRequestActionEnumeration.DELETESERVICEINSTANCE, serviceInstance, customer, requestContext); }  GenericResourceApiServiceOperationInformation assignServiceInstance(ServiceInstance serviceInstance,
            Customer customer, RequestContext requestContext); GenericResourceApiServiceOperationInformation deleteServiceInstance(ServiceInstance serviceInstance,
            Customer customer, RequestContext requestContext); GenericResourceApiServiceOperationInformation unassignServiceInstance(ServiceInstance serviceInstance,
            Customer customer, RequestContext requestContext); GenericResourceApiServiceOperationInformation deactivateServiceInstance(ServiceInstance serviceInstance,
            Customer customer, RequestContext requestContext); GenericResourceApiServiceOperationInformation changeModelServiceInstance(ServiceInstance serviceInstance,
            Customer customer, RequestContext requestContext);  }### Answer:
@Test public void unassignServiceInstanceSuccessTest() throws Exception { doReturn(new GenericResourceApiServiceOperationInformation()).when(MOCK_serviceTopologyOperationMapper) .reqMapper(eq(SDNCSvcOperation.SERVICE_TOPOLOGY_OPERATION), eq(SDNCSvcAction.DELETE), eq(GenericResourceApiRequestActionEnumeration.DELETESERVICEINSTANCE), any(ServiceInstance.class), any(Customer.class), any(RequestContext.class)); sdncServiceInstanceResources.unassignServiceInstance(serviceInstance, customer, requestContext); verify(MOCK_serviceTopologyOperationMapper, times(1)).reqMapper(eq(SDNCSvcOperation.SERVICE_TOPOLOGY_OPERATION), eq(SDNCSvcAction.DELETE), eq(GenericResourceApiRequestActionEnumeration.DELETESERVICEINSTANCE), any(ServiceInstance.class), any(Customer.class), any(RequestContext.class)); }
@Test public void unassignServiceInstanceExceptionTest() throws Exception { expectedException.expect(Exception.class); doThrow(Exception.class).when(MOCK_serviceTopologyOperationMapper).reqMapper( eq(SDNCSvcOperation.SERVICE_TOPOLOGY_OPERATION), eq(SDNCSvcAction.DELETE), eq(GenericResourceApiRequestActionEnumeration.DELETESERVICEINSTANCE), any(ServiceInstance.class), any(Customer.class), any(RequestContext.class)); sdncServiceInstanceResources.unassignServiceInstance(serviceInstance, customer, requestContext); }