// Path: user-registration-application/src/main/java/com/ewolff/user_registration/domain/User.java
// public class User {
// 
// 	private String name;
// 	
// 	private String firstname;
// 	
// 	private String email;
// 	
// 	private User() {
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 
// 	public void setFirstname(String firstname) {
// 		this.firstname = firstname;
// 	}
// 
// 	public void setEmail(String email) {
// 		this.email = email;
// 	}
// 
// 	public User(String firstname, String name, String email) {
// 		super();
// 		this.firstname = firstname;
// 		this.name = name;
// 		this.email = email;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public String getFirstname() {
// 		return firstname;
// 	}
// 
// 	public String getEmail() {
// 		return email;
// 	}
// 	
// 	
// }


import com.ewolff.user_registration.domain.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Matchers;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
package com.ewolff.user_registration.service;




@RunWith(MockitoJUnitRunner.class)
public class RegistrationServiceUnitTest {

    @Mock
    private JdbcTemplate jdbcTemplateMock;

    @InjectMocks
    private RegistrationService service;

    @Test
    public void registerNewUser() {
        // arrange
// Path: user-registration-application/src/main/java/com/ewolff/user_registration/domain/User.java
// public class User {
// 
// 	private String name;
// 	
// 	private String firstname;
// 	
// 	private String email;
// 	
// 	private User() {
// 	}
// 
// 	public void setName(String name) {
// 		this.name = name;
// 	}
// 
// 	public void setFirstname(String firstname) {
// 		this.firstname = firstname;
// 	}
// 
// 	public void setEmail(String email) {
// 		this.email = email;
// 	}
// 
// 	public User(String firstname, String name, String email) {
// 		super();
// 		this.firstname = firstname;
// 		this.name = name;
// 		this.email = email;
// 	}
// 
// 	public String getName() {
// 		return name;
// 	}
// 
// 	public String getFirstname() {
// 		return firstname;
// 	}
// 
// 	public String getEmail() {
// 		return email;
// 	}
// 	
// 	
// }


// Path: user-registration-application/src/test/java/com/ewolff/user_registration/service/RegistrationServiceUnitTest.java
import com.ewolff.user_registration.domain.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Matchers;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.anyString;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

package com.ewolff.user_registration.service;




@RunWith(MockitoJUnitRunner.class)
public class RegistrationServiceUnitTest {

    @Mock
    private JdbcTemplate jdbcTemplateMock;

    @InjectMocks
    private RegistrationService service;

    @Test
    public void registerNewUser() {
        // arrange
        User user = new User("Eberhard","Wolff","eberhard.wolff@gmail.com");