@Test
public void deleteOperation() {

     Mockito.when(operationRepository
                            .findByResourceApiIdAndResourceIdAndId(Mockito.anyLong(), Mockito.anyLong(),
                                                                   Mockito.anyLong()
                            )).thenReturn(operation);
     Mockito.when(operationRepository.findOne(Mockito.anyLong())).thenReturn(operation);
     List<Interceptor> interceptors = new ArrayList<>();
     Mockito.when(interceptorRepository.findByOperationId(Mockito.anyLong())).thenReturn(interceptors);
     this.operationService.delete(1L, 1L, 1L);
     Mockito.verify(this.operationRepository, Mockito.times(1)).delete(operation.getId());
}