package org.traccar.model;

import static org.junit.Assert.assertEquals;
import org.junit.Test;

public class MiscFormatterTest {

    @Test
    public void testToString() throws Exception {

        Position position = new Position();
        position.set("a", "1");
        position.set("b", "2");
        position.set("a", "3");
        position.set("c", 3.555);
        
        assertEquals(position.getOther(), "<info><a>3</a><b>2</b><c>3.56</c></info>");
        
    }

}

@@ -329,50 +329,8 @@
 %22);%0A
-        position.set(%22c%22, 3.555);%0A        
 %0A   
@@ -351,29 +351,8 @@
 als(
-position.getOther(), 
 %22%3Cin
@@ -375,26 +375,36 @@
 /b%3E%3C
-c%3E3.56%3C/c%3E%3C/info%3E%22
+/info%3E%22, position.getOther()
 );%0A 

Remove locale dependent test