@Test
public void findResource() {

     Mockito.when(this.resourceRepository.findByApiIdAndId(Mockito.any(Long.class), Mockito.anyLong()))
            .thenReturn(resource);
     Resource resourceResp = resourceService.find(10L, 1L);
     assertEquals(resourceResp.getId(), resource.getId());
     Mockito.verify(this.resourceRepository, Mockito.times(1))
            .findByApiIdAndId(Mockito.any(Long.class), Mockito.anyLong());
}