@Test
public void findWithNotFoundTest() {

    thrown.expect(NotFoundException.class);
    thrown.expectMessage("Resource not found");
    Mockito.when(scopeRepository.findByApiIdAndId(Mockito.anyLong(), Mockito.anyLong())).thenReturn(null);
    Scope scopeActual = scopeService.find(this.scope.getApi().getId(), this.scope.getId());
    assertEquals(scope, scopeActual);
}