Index: trunk/test/atmsdriver/model/HighwaysTest.java
===================================================================
--- trunk/test/atmsdriver/model/HighwaysTest.java	(revision 248)
+++ trunk/test/atmsdriver/model/HighwaysTest.java	(revision 252)
@@ -87,4 +87,7 @@
         System.out.println(result);
         assertTrue(result.startsWith(expToString1));
+        highways.applyColorToHighwayStretch(241, Station.DIRECTION.NORTH, 20.13, 4.0, LoopDetector.DOTCOLOR.RED);
+        result = highways.toString();
+        assertEquals("241 N @@ @@@@@-",result.substring(0,15));
     }
     String expToString1 = 
@@ -99,5 +102,4 @@
                 "test/atmsdriver/model/ldssample.txt",
                 "localhost", 8080);
-        //highways.getHighwayByRouteNumber(5).stations.get(0).loops.get(0).vol = 1;
         String result = highways.toJson();
         System.out.println(result);
@@ -105,5 +107,18 @@
     }
    
-
+    public void testApplyColor()
+    {
+        System.out.println("apply color");
+        Highways highways = new Highways(
+            "test/atmsdriver/model/ldssample.txt",
+            "localhost", 8080);
+        highways.applyColorToHighwayStretch(5, Station.DIRECTION.SOUTH, 0.9, 2.0, LoopDetector.DOTCOLOR.RED);
+        String result = highways.toString();
+        assertEquals("5 S @@@", result.trim());
+        highways.applyColorToHighwayStretch(241, Station.DIRECTION.NORTH, 20.13, 4.0, LoopDetector.DOTCOLOR.RED);
+        result = highways.toString();
+        assertEquals("241 N @@ @@@@@-",result.substring(0,15));
+
+    }            
     
     public void testToCondensedFormat()
