// import { async, ComponentFixture, TestBed } from '@angular/core/testing';
//
// import { SampleComponent } from './sample.component';
// import {ApiService} from '../services/api.service';
// import {ValidationService} from '../services/validation.service';
// import {DataService} from '../services/data.service';
// import {ModalService, RbUiComponentsModule} from '@inst-iot/bosch-angular-ui-components';
// import {FormsModule} from '@angular/forms';
// import {ActivatedRoute, Router} from '@angular/router';
// import {AutocompleteService} from '../services/autocomplete.service';
// import {RbCustomInputsModule} from '../rb-custom-inputs/rb-custom-inputs.module';
//
// // TODO
//
// let routerServiceSpy: jasmine.SpyObj<Router>;
// let activatedRouteServiceSpy: jasmine.SpyObj<ActivatedRoute>;
// let apiServiceSpy: jasmine.SpyObj<ApiService>;
// let validationServiceSpy: jasmine.SpyObj<ValidationService>;
// let autocompleteServiceSpy: jasmine.SpyObj<AutocompleteService>;
// let modalServiceSpy: jasmine.SpyObj<ModalService>;
// let dataServiceSpy: jasmine.SpyObj<DataService>;
//
// describe('SampleComponent', () => {
//   let component: SampleComponent;
//   let fixture: ComponentFixture<SampleComponent>;
//
//   beforeEach(async(() => {
//     const routerSpy = jasmine.createSpyObj('Router', ['navigate']);
//     const activatedRouteSpy = jasmine.createSpyObj('ActivatedRoute', ['snapshot']);
//     const apiSpy = jasmine.createSpyObj('ApiService', ['get', 'post', 'put', 'delete']);
//     const validationSpy = jasmine.createSpyObj('ValidationService', ['generate']);
//     const autocompleteSpy = jasmine.createSpyObj('AutocompleteService', ['bind']);
//     const modalSpy = jasmine.createSpyObj('ModalService', ['open']);
//     const dataSpy = jasmine.createSpyObj('DataService', ['load', 'idReload']);
//
//     TestBed.configureTestingModule({
//       declarations: [ SampleComponent ],
//       imports: [
//         RbUiComponentsModule,
//         RbCustomInputsModule,
//         FormsModule
//       ],
//       providers: [
//         {provide: Router, useValue: routerSpy},
//         {provide: ActivatedRoute, useValue: {snapshot: {paramMap: {get: (id) => '12345'}}}},
//         {provide: ApiService, useValue: apiSpy},
//         {provide: ValidationService, useValue: validationSpy},
//         {provide: AutocompleteService, useValue: autocompleteSpy},
//         {provide: ModalService, useValue: modalSpy},
//         {provide: DataService, useValue: dataSpy}
//       ]
//     })
//     .compileComponents();
//
//     routerServiceSpy = TestBed.inject(Router) as jasmine.SpyObj<Router>;
//     activatedRouteServiceSpy = TestBed.inject(ActivatedRoute) as jasmine.SpyObj<ActivatedRoute>;
//     apiServiceSpy = TestBed.inject(ApiService) as jasmine.SpyObj<ApiService>;
//     validationServiceSpy = TestBed.inject(ValidationService) as jasmine.SpyObj<ValidationService>;
//     autocompleteServiceSpy = TestBed.inject(AutocompleteService) as jasmine.SpyObj<AutocompleteService>;
//     modalServiceSpy = TestBed.inject(ModalService) as jasmine.SpyObj<ModalService>;
//     dataServiceSpy = TestBed.inject(DataService) as jasmine.SpyObj<DataService>;
//
//     // activatedRouteServiceSpy.snapshot.and.returnValue({paramMap: {get: () => '12345'}});
//   }));
//
//   beforeEach(() => {
//     fixture = TestBed.createComponent(SampleComponent);
//     component = fixture.componentInstance;
//     component.ngOnInit();
//     fixture.detectChanges();
//   });
//
//   it('should create', () => {
//     expect(component).toBeTruthy();
//   });
// });
