@Test
public void loginWithError() {

    DeveloperLogin developerLogin = new DeveloperLogin();
    developerLogin.setEmail("other@gmail.com");
    developerLogin.setPassword("otherPassword");
    Mockito.when(developerRepository.findByEmailAndPassword(Mockito.anyString(), Mockito.anyString())).thenReturn(null);
    Developer logged = developerService.login(developerLogin);
    assertNull(logged);
}