@Test
public void deleteApiTest() {

     Mockito.when(apiRepository.findOne(Mockito.anyLong())).thenReturn(api);
     this.apiService.delete(1L);
     Mockito.verify(this.apiRepository, Mockito.times(1)).delete(api);
}