@Test
public void deleteWithSuccess() {

    Mockito.when(developerRepository.findOne(Mockito.anyLong())).thenReturn(developer);
    developerService.delete(developer.getId());
    Mockito.verify(developerRepository, Mockito.times(1)).findOne(Mockito.anyLong());
}