@Test
public void updateWithDeveloperNotFound() {

    thrown.expect(NotFoundException.class);
    thrown.expectMessage("Resource not found");
    Mockito.when(developerRepository.findOne(developer.getId())).thenReturn(null);
    developerService.update(developer.getId(), developerDTO);
}