@Test
public void loginWithSuccess() {

    DeveloperLogin developerLogin = new DeveloperLogin();
    developerLogin.setEmail(developer.getEmail());
    developerLogin.setPassword(developer.getPassword());
    Mockito.when(developerRepository.findByEmailAndPassword(developer.getEmail(), developer.getPassword())).thenReturn(developer);
    Developer logged = developerService.login(developerLogin);
    assertEquals(developer, logged);
}