package cucumber.table.java;

import org.junit.Assert;
import org.junit.Test;

public class JavaBeanPropertyHeaderMapperTest {
    @Test
    public void testTransformToJavaPropertyName() {
        JavaBeanPropertyHeaderMapper mapper = new JavaBeanPropertyHeaderMapper();
        String userName = "User Name";
        String birthDate = "  Birth   Date\t";
        String email = "email";
        Assert.assertEquals("Transformed Name", "userName", mapper.map(userName));
        Assert.assertEquals("Transformed Name", "birthDate", mapper.map(birthDate));
        Assert.assertEquals("Transformed Name", "email", mapper.map(email));
    }
}

@@ -44,23 +44,29 @@
 nit.
-Asser
+Tes
 t;%0A
+%0A
 import 
+static 
 org.
@@ -71,20 +71,35 @@
 g.junit.
-Test
+Assert.assertEquals
 ;%0A%0Apubli
@@ -297,133 +297,8 @@
     
-String userName = %22User Name%22;%0A        String birthDate = %22  Birth   Date%5Ct%22;%0A        String email = %22email%22;%0A        Assert.
 asse
@@ -349,24 +349,27 @@
 per.map(
-u
+%22U
 ser
+ 
 Name
+%22
 ));%0A    
@@ -364,39 +364,32 @@
 ame%22));%0A        
-Assert.
 assertEquals(%22Tr
@@ -429,25 +429,34 @@
 per.map(
-b
+%22  B
 irth
+   
 Date
+%5Ct%22
 ));%0A    
@@ -459,23 +459,16 @@
         
-Assert.
 assertEq
@@ -512,21 +512,23 @@
 per.map(
+%22
 email
+%22
 ));%0A    

Improve readability